[jQuery] Re: Help serializing form to array

2007-08-28 Thread Wizzud
Use... $.extend( parms, {this.id : this.value } ); // extends parms with the subsequent objects The merge() method is for arrays, whereas parms and {this.id : this.value} are both objects, which is why you are getting the error. bweaverusenet wrote: Hi. What is the voodoo to build an

[jQuery] Re: Help serializing form to array

2007-08-28 Thread Erik Beeson
I think you could replace the parms = ... line with: parms[this.id] = this.value; But I suggest you check out the awesome form plugin: http://www.malsup.com/jquery/form/ --Erik On 8/27/07, bweaverusenet [EMAIL PROTECTED] wrote: Hi. What is the voodoo to build an array for a JSON submit

[jQuery] Re: Help serializing form to array

2007-08-28 Thread Mike Alsup
Take a look at Eric's response. Except I think it should use name instead of id: parms[this.name] = this.value; On 8/28/07, bweaverusenet [EMAIL PROTECTED] wrote: Okay, thanks. But I get the same error with $.extend( parms, {this.id : this.value } ); missing : after property id

[jQuery] Re: Help serializing form to array

2007-08-28 Thread bweaverusenet
That worked, thanks! I'll check out the form plugin... just wanted to figure out what I was doing wrong first. :-) On Aug 28, 3:36 am, Erik Beeson [EMAIL PROTECTED] wrote: I think you could replace the parms = ... line with: parms[this.id] = this.value; But I suggest you check out the