This topic is well suited for anyone using the auto_complete_field
function to do ajax dropdowns but wants a submit button in there just in
case the user''s mouse behavior does something that''s not
expected.
You''d do this in your layout:
<form>
<%= text_field :model, :attribute, :size => 21 %>
<%= submit_to_remote nil,''Go'', :url => {:action =>
''auto_complete_model_attribute''},
:update =>
''manual_search_results'' %>
</form>
then you''ll have your updated div:
<div id = ''manual_search_results''></div>
and it works. easy.
Dominic Son wrote:> Hi. What would i call as my action to trigger the auto_complete_ that
> would call the action to do the ajax dropdown?
>
> or i would take a hack that would insert a space inside the text field
> to trigger the ajax action...
>
> ideas?
--
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
-~----------~----~----~----~------~----~------~--~---