Problem: A bug in the jquery control
Use $.ajax error, IE7 will be wrong, ie6,ie8 are normal. Error prompts the following figure:
Notes from the official forum:
Http://forum.jquery.com/topic/object-doesn-t-support-this-property-or-method-from-jquery-1-4-1-in-ie7-only
http://dev.jquery.com/ticket/6498
http://dev.jquery.com/ticket/6314
Solution:
Modify Jquery-1.4.2.js.
Some of the changes I have made in the forum have been tested and feasible.
Copy Code code as follows:
Hi, I found this seems to relate to JQuery bug 6314 (http://dev.jquery.com/ticket/6314). In IE7, if ' Enable native XMLHTTP support ' is checked (under Tools > Internet Options > Advanced tab > inside the Security section) then this error shows up. Unchecking/disabiling the option seems to resolve the error.
However, since I cannot tell all website viewers to uncheck this option, then the following code also seems to resolve the Issue
In Non-minified jQuery, find the lines:
try {
var oldabort = Xhr.abort;
Xhr.abort = function () {
if (XHR) {
Oldabort.call (XHR);
}
onReadyStateChange ("Abort");
};
catch (e) {}
Replace it with the following code:
try {
var oldabort = Xhr.abort;
Xhr.abort = function () {
if (XHR) {
if (Oldabort.call = = undefined) {
Oldabort ();
} else {
Oldabort.call (XHR);
}
}
onReadyStateChange ("Abort");
};
catch (e) {}
I believe the issue is as stated by the The XHR (XMLHTTP) object are a native IE object, so the Abort function on the Xhr.abort function does not support call.