Added support for the native AJAX object in IE 7.
This commit is contained in:
parent
e23c047e78
commit
fb534aea03
1 changed files with 1 additions and 1 deletions
|
@ -58,7 +58,7 @@ jQuery.fn.load = function( url, params, callback, ifModified ) {
|
||||||
};
|
};
|
||||||
|
|
||||||
// If IE is used, create a wrapper for the XMLHttpRequest object
|
// If IE is used, create a wrapper for the XMLHttpRequest object
|
||||||
if ( jQuery.browser.msie )
|
if ( jQuery.browser.msie && typeof XMLHttpRequest == "undefined" )
|
||||||
XMLHttpRequest = function(){
|
XMLHttpRequest = function(){
|
||||||
return new ActiveXObject(
|
return new ActiveXObject(
|
||||||
navigator.userAgent.indexOf("MSIE 5") >= 0 ?
|
navigator.userAgent.indexOf("MSIE 5") >= 0 ?
|
||||||
|
|
Loading…
Reference in a new issue