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

Hi Lille,

On Tue, Jun 15, 2010 at 10:11 AM, Lille [email protected]
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

Bill,

Yes, thanks, that indeed does the trick!

Best,

Lille