Ticket #3087: ajax_transport.diff
File ajax_transport.diff, 1.0 KB (added by , 14 years ago) |
---|
-
src/ajax.js
97 97 var jsc = now(); 98 98 99 99 jQuery.extend({ 100 101 // Create the request object; Microsoft failed to properly 102 // implement the XMLHttpRequest in IE7, so we use the ActiveXObject when it is available 103 getAjaxTransport : function() { 104 return window.ActiveXObject ? new ActiveXObject("Microsoft.XMLHTTP") : new XMLHttpRequest(); 105 }, 106 100 107 get: function( url, data, callback, type ) { 101 108 // shift arguments if data argument was ommited 102 109 if ( jQuery.isFunction( data ) ) { … … 275 282 276 283 // Create the request object; Microsoft failed to properly 277 284 // implement the XMLHttpRequest in IE7, so we use the ActiveXObject when it is available 278 var xhr = window.ActiveXObject ? new ActiveXObject("Microsoft.XMLHTTP") : new XMLHttpRequest();285 var xhr = jQuery.getAjaxTransport(); 279 286 280 287 // Open the socket 281 288 // Passing null username, generates a login popup on Opera (#2865)