Added support for the native AJAX object in IE 7.

This commit is contained in:
John Resig 2006-08-31 06:30:44 +00:00
parent e23c047e78
commit fb534aea03

View file

@ -58,7 +58,7 @@ jQuery.fn.load = function( url, params, callback, ifModified ) {
};
// If IE is used, create a wrapper for the XMLHttpRequest object
if ( jQuery.browser.msie )
if ( jQuery.browser.msie && typeof XMLHttpRequest == "undefined" )
XMLHttpRequest = function(){
return new ActiveXObject(
navigator.userAgent.indexOf("MSIE 5") >= 0 ?