Bug Tracker

Opened 13 years ago

Closed 13 years ago

Last modified 8 years ago

#954 closed bug (worksforme)

IE form serialization bug

Reported by: admin@… Owned by:
Priority: minor Milestone: 1.2
Component: core Version: 1.1.4
Keywords: IE, serialize Cc:
Blocked by: Blocking:

Description (last modified by john)

When i try to serialize a form in IE it does not work , firefox and Opera work fine. This leads to forms submitted in IE not having the correct fields.

After a little debugging i made a small fix ( works for me in IE , firefox and Opera ) .

in jquery .js after line 2164 i put the following code

var k = false;

if ( a[0][0] != undefined) k = a[0];

if ( a.constructor == Array
a.jquery k)

Serialize the form elements jQuery.each( (k)?k:a, function(){

s.push( encodeURIComponent(this.name) + "=" + encodeURIComponent( this.value ) );

});

replacing the original

if ( a.constructor == Array
a.jquery)

Serialize the form elements jQuery.each( a, function(){

s.push( encodeURIComponent(this.name) + "=" + encodeURIComponent( this.value ) );

});

Change History (2)

comment:1 Changed 13 years ago by malsup

What type of form causes this problem in IE?

comment:2 Changed 13 years ago by john

Description: modified (diff)
Milestone: 1.1.31.2
need: Review
Resolution: worksforme
Status: newclosed
Version: 1.11.1.4

I haven't been able to duplicate this - the new form serialization code in 1.2 should resolve anything here.

Note: See TracTickets for help on using tickets.