Hi Abel, Sorry I only skimmed through the thread here, so excuse me if my response comes irrelevant.
Assuming forms is the array of forms you wanna submit, try the following: var paramsObj = forms.collect(function(f) {return f.serialize(false)}).join('&').toQueryParams(); this basically merges the submit query of all the forms into one queryString, then deserializes them into a Hash object. cheers -- mona [EMAIL PROTECTED] On Tue, Nov 18, 2008 at 11:38 AM, Abel Figueiredo <[EMAIL PROTECTED]> wrote: > > I spoke too soon. > > There's a little problem. One of the forms contains a select option. > > When I click a button the merge function is called and the value shown > should be the selected one, but it's the first one instead. > > At first I thought it could be something else and I've submitted that > particular form with $(form).serialize . > > On 18 Nov, 09:58, Abel Figueiredo <[EMAIL PROTECTED]> wrote: >> Thank you for your help. It's working as expected :-) >> >> On Nov 15, 3:32 am, kangax <[EMAIL PROTECTED]> wrote: >> >> > On Nov 14, 11:52 am, Abel Figueiredo <[EMAIL PROTECTED]> >> > wrote: >> >> > > This solution. Is it for same-named form controls? My solution doesn't >> > > have same-named controls. >> >> > > So with this i can send the return from mergeForms... as my >> > > parameters, right? >> >> > Yes. Just pass it as many forms as you need. >> >> > [...] >> >> > -- >> > kangax > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" group. To post to this group, send email to prototype-scriptaculous@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en -~----------~----~----~----~------~----~------~--~---