Opened 13 years ago
Closed 13 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 13 years ago by
comment:2 Changed 13 years ago by
Component: | unfiled → ajax |
---|---|
Resolution: | → duplicate |
Status: | new → closed |
Yeah, this is a duplicate.
Same as Ticket:#6037 ?