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 propert
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
Okay, thanks.
But I get the same error with $.extend( parms, {this.id :
this.value } );
missing : after property id
Hmmm...
On Aug 28, 3:30 am, Wizzud <[EMAIL PROTECTED]> wrote:
> Use...
>
> $.extend( parms, {this.id : this.value } ); // extends parms with the
> subsequent objects
>
> The m
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
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
5 matches
Mail list logo