mirror of
https://github.com/jquery/jquery.git
synced 2025-01-10 18:24:24 +00:00
Added support for the native AJAX object in IE 7.
This commit is contained in:
parent
e23c047e78
commit
fb534aea03
@ -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 New Issue
Block a user