[Proto-Scripty] Re: Need help sending information from multiple forms

2008-11-18 Thread Mona Remlawi
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 t

[Proto-Scripty] Re: Need help sending information from multiple forms

2008-11-18 Thread Abel Figueiredo
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 particu

[Proto-Scripty] Re: Need help sending information from multiple forms

2008-11-18 Thread Abel Figueiredo
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

[Proto-Scripty] Re: Need help sending information from multiple forms

2008-11-14 Thread kangax
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. [

[Proto-Scripty] Re: Need help sending information from multiple forms

2008-11-14 Thread Abel Figueiredo
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? On Nov 13, 5:26 pm, kangax <[EMAIL PROTECTED]> wrote: > On Nov 13, 11:13 am, Abel Figueiredo <[EMAIL PROTECTED]> > wrote

[Proto-Scripty] Re: Need help sending information from multiple forms

2008-11-13 Thread kangax
On Nov 13, 11:13 am, Abel Figueiredo <[EMAIL PROTECTED]> wrote: [...] > Seeing it's not possible to use nested forms, I need to combine the > information of all 3 and send it as parameters. I needed something similar some time ago. Serializing multiple forms is as easy as merging multiple objects

[Proto-Scripty] Re: Need help sending information from multiple forms

2008-11-13 Thread kangax
On Nov 13, 11:13 am, Abel Figueiredo <[EMAIL PROTECTED]> wrote: > Hello. > > I need a little help. > > I'm developing an application using prototype & php and I want to do > the following: > > In a page I have 3 forms: One containing a start calendar, one > containing a end calendar and one that a