<% form_tag({ :controller => 'articles', :action => 'search' },
{ :method => 'get', :id => 'sform' }) do -%>
<% end -%>
Searching...
<%= observe_field 'q',
:url => { :controller => 'live', :action => 'search' },
:frequency => 1,
:loading => "Element.show('loading')",
:complete => "Element.hide('loading')",
:update => 'results',
:with => "'q=' + escape($F('q'))" %>