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...@gmail.com> 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@googlegroups.com.
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.
No comments:
Post a Comment