Side navigation
#6120 closed bug (duplicate)
Opened February 18, 2010 03:49PM UTC
Closed February 18, 2010 10:11PM UTC
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 ?
Same as Ticket:#6037 ?