Lille
2010-Jun-02 19:35 UTC
how to pass a form DOM ID to submit_to_remote, just like with observe_form?
Hi, I''d like to use submit_to_remote just like observe_form: I want to supply a DOM ID to submit_to_remote. I''ve searched around, but I do not see any way to do this. It seems odd that I shouldn''t be able to use a form DOM ID in something like submit_to_remote. Any thoughts? (I''m doing this because I want to allow users to choose when to make an ajax call from submit_to_remote element that is NOT part of the form I want to submit.) Thanks, Lille -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Lille
2010-Jun-02 19:53 UTC
Re: how to pass a form DOM ID to submit_to_remote, just like with observe_form?
Got it. This can be accomplished by the :submit option described in the following doc: http://api.rubyonrails.org/classes/ActionView/Helpers/PrototypeHelper.html#M002174 Lille On Jun 2, 3:35 pm, Lille <lille.pengu...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi, > > I''d like to use submit_to_remote just like observe_form: I want to > supply a DOM ID to submit_to_remote. > > I''ve searched around, but I do not see any way to do this. It seems > odd that I shouldn''t be able to use a form DOM ID in something like > submit_to_remote. Any thoughts? > > (I''m doing this because I want to allow users to choose when to make > an ajax call from submit_to_remote element that is NOT part of the > form I want to submit.) > > Thanks, > > Lille-- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.