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?
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?
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:
<%= text_field :model, :attribute, :size => 21 %><%= submit_to_remote nil,‘Go’, :url => {:action =>
‘auto_complete_model_attribute’},
:update => ‘manual_search_results’ %>
then you’ll have your updated div:
and it works. easy.
Dominic S. 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?
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs