Changeset 5805
- Timestamp:
- 08/04/08 14:18:06 (5 months ago)
- Files:
-
- 1 modified
-
trunk/jquery/src/ajax.js (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/jquery/src/ajax.js
r5733 r5805 98 98 99 99 jQuery.extend({ 100 100 101 get: function( url, data, callback, type ) { 101 102 // shift arguments if data argument was ommited … … 113 114 }); 114 115 }, 116 117 // Create the request object; Microsoft failed to properly 118 // implement the XMLHttpRequest in IE7, so we use the ActiveXObject when it is available 119 getAjaxTransport : function() { 120 return window.ActiveXObject ? new ActiveXObject("Microsoft.XMLHTTP") : new XMLHttpRequest(); 121 }, 122 115 123 116 124 getScript: function( url, callback ) { … … 274 282 var requestDone = false; 275 283 276 // Create the request object; Microsoft failed to properly 277 // 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(); 284 // Create the request object 285 var xhr = jQuery.getAjaxTransport(); 279 286 280 287 // Open the socket
