Bug Tracker

Modify

Ticket #954 (closed bug: worksforme)

Opened 6 years ago

Last modified 14 months ago

IE form serialization bug

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

Description (last modified by john) (diff)

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

comment:1 Changed 6 years ago by malsup

What type of form causes this problem in IE?

comment:2 Changed 6 years ago by john

  • Status changed from new to closed
  • Description modified (diff)
  • Version changed from 1.1 to 1.1.4
  • Milestone changed from 1.1.3 to 1.2
  • need set to Review
  • Resolution set to worksforme

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

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.