I have a ajax search set up that works very well but I can only search
one thing.
code im using
Search: <input type="text" id="search_form"
name="search" />
<img id="spinner" src="../images/spinner.gif"
style="display: none;" />
<div id=''results''></div>
<%= observe_field ''search_form'',
:frequency => 0.5,
:update => ''results'',
:url => {:controller=>''ratings'',
:action=>
''get_results''},
:with => "''search_text='' +
escape(value)",
:loading =>
"document.getElementById(''spinner'').style.display=''inline''",
:loaded =>
"document.getElementById(''spinner'').style.display=''none''"
%>
Where action is I was wondering if I could set up a combo box so I could
switch between methods in the controller and whats selected in the box
would be used for the action. I would can the moethods to make it more
meaning full for the user.
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---