Commit fb534aea authored by John Resig's avatar John Resig

Added support for the native AJAX object in IE 7.

parent e23c047e
...@@ -58,7 +58,7 @@ jQuery.fn.load = function( url, params, callback, ifModified ) { ...@@ -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 ?
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment