[jQuery] Re: jQuery 1.2 - Serialize a form as JSON

2007-09-21 Thread Wizzud
Name a browser that will take the submission of... ... and transmit it as : prog.php?foo[]=bar1&foo[]=bar2 (and I suggest you test it first) Christoph Roeder-2 wrote: > > > Ok, Problem #1 is solved, but #2 isn't. > > Now I've seen this in the jQuery Ajax-Docs [1]: > >> If v

[jQuery] Re: jQuery 1.2 - Serialize a form as JSON

2007-09-21 Thread Christoph Roeder
Ok, Problem #1 is solved, but #2 isn't. Now I've seen this in the jQuery Ajax-Docs [1]: > If value is an Array, jQuery serializes multiple values with same key i.e. > {foo:["bar1", "bar2"]} becomes '&foo=bar1&foo=bar2'. WTF? Why not like every browser does it? '&foo[]=bar1&foo[]=bar2' [1] h

[jQuery] Re: jQuery 1.2 - Serialize a form as JSON

2007-09-12 Thread Wizzud
Ticket #1600 already raised. Pyrolupus wrote: > > > In testing Chistoph's code, I encountered a separate but possibly > related issue: serialize() and serializeArray() are returning things > I did not expect for multiple selects. For the following form: > > > > Black

[jQuery] Re: jQuery 1.2 - Serialize a form as JSON

2007-09-12 Thread Pyrolupus
In testing Chistoph's code, I encountered a separate but possibly related issue: serialize() and serializeArray() are returning things I did not expect for multiple selects. For the following form: Black Blue Calling $('form#mydForm').serial