<%= form_tag( "http://search2.library.oregonstate.edu/record/search"\) %> <%= text_field_tag('query',value="Enter keywords",{ :size=> "35", :accesskey=> "s"}) %> <%= hidden_field_tag('tab', value="general")%> <%= hidden_field_tag('group', value="g5")%> <%= submit_tag 'Go', :onclick =>remote_function(:url => {:action => :store_query, :id => @mod, :page => @page, :query => ??? } ) %> <%= end_form_tag %>
In the remote_function call I want to pass the text_field named 'query' value as a param, so, :query => ??? How do I get the value out of the text field and into my param hash?
Everything else works, and I can put a static value in the query hash and get the functionality I am looking for. But, how to get the user's input???
Thanks in advance, K