morgler wrote:
> I have a problem with observe_form:
>
> <%= observe_form( "search_form",
> :frequency => 0.25,
> :update => "search",
> :loading => "Element.show('spinner')",
> :complete => "Element.hide('spinner')",
> :url => { :action => 'update_search' }) %>
>
> In my form I have a combo box. When the user clicks the combo box and
> scans through the options (WITHOUT yet selecting one), the controller
> action gets called by observe_form. This is pretty annoying. What I
> intend is that the action is only called once the user really clicks
> on an option (thus changing the "model data" of the form if you want).
> How can I only react to "real" changes of the form and ignore
> everything else?
You should remove the :frequency option.
--
Rails Wheels - Find Plugins, List & Sell Plugins - http://railswheels.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 [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---