Lille
2010-Jun-15 15:11 UTC
best techniques for ajax-submitting multiple forms at once requested
Hi, I have multiple forms on a page that can be sent individually via submit_to_remote. I''d also like to offer the option of sending the data from my several forms at once. Based on google searches related to this, it seems the best approach will be to javascript something that sends each the data form each form one after the other -- multiple ajax calls. But isn''t there a technique for merging the data from the individual forms and ajax submitting it all at once? 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.
Bill Walton
2010-Jun-15 15:17 UTC
Re: best techniques for ajax-submitting multiple forms at once requested
Hi Lille, On Tue, Jun 15, 2010 at 10:11 AM, Lille <lille.penguini-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> But isn''t there a technique for merging the data from the individual > forms and ajax submitting it all at once?Never tried this particular scenerio, but the link_to_remote method takes a :submit argument that will serialize and post all the inputs inside the div specified as its argument. You might give that a try. HTH, Bill -- 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-15 17:31 UTC
Re: best techniques for ajax-submitting multiple forms at once requested
Bill, Yes, thanks, that indeed does the trick! Best, Lille On Jun 15, 11:17 am, Bill Walton <bwalton...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi Lille, > > On Tue, Jun 15, 2010 at 10:11 AM, Lille <lille.pengu...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > But isn''t there a technique for merging the data from the individual > > forms and ajax submitting it all at once? > > Never tried this particular scenerio, but the link_to_remote method > takes a :submit argument that will serialize and post all the inputs > inside the div specified as its argument. You might give that a try. > > HTH, > Bill-- 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.