Bug Tracker

Opened 10 years ago

Closed 10 years ago

#6120 closed bug (duplicate)

AJAX and Internet Explorer 7

Reported by: boboss123 Owned by:
Priority: Milestone: 1.4.2
Component: ajax Version: 1.4.1
Keywords: Cc:
Blocked by: Blocking:

Description

Hi,

Internet Explorer 7 send me an error message : bad method/property for this object => i have no problem with IE6/IE8/Firfox/opera/safari

my code is :

$.ajax({

url: fileJSON, cache: false, timeout: 4000, type: "POST", data: data, success: myFunc, error: myFunc

});

=> I send this request to a special devise which restart when it detecte the request

To resolve the problem I modified JQuery source code :

Override the abort handler, if we can (IE doesn't allow it, but that's OK) Opera doesn't fire onreadystatechange at all on abort try {

var oldAbort = xhr.abort; xhr.abort = function() {

if ( xhr ) {

try{

oldAbort.call( xhr );

}catch(e){}

}

onreadystatechange( "abort" );

};

I add try/catch for the command : oldAbort.call( xhr );

is it a bug ?

Change History (2)

comment:1 Changed 10 years ago by geki007

Same as Ticket:#6037 ?

comment:2 Changed 10 years ago by john

Component: unfiledajax
Resolution: duplicate
Status: newclosed

Yeah, this is a duplicate.

Note: See TracTickets for help on using tickets.