public
Description: Updated hourly from the jQuery SVN repo
Homepage: http://jquery.com
Clone URL: git://github.com/JackDanger/jquery.git
jquery ajax: extends #3087. The xhr factory is now an ajax setting called 
'xhr' instead of a method (jQuery.getAjaxTransport).

git-svn-id: http://jqueryjs.googlecode.com/svn/trunk@5807 
c715fcbe-d12f-0410-84c4-316a508785bb
aflesler (author)
Thu Aug 07 06:07:21 -0700 2008
commit  a4d6d244019c7da86da06efdf936c974b88253d3
tree    5e4d8b9ce3939154749f34f3632fcede9f9ccffb
parent  395bebbfb4a5777f1bed73d30c053e761abf76ee
...
113
114
115
116
117
118
119
120
121
122
123
124
125
...
159
160
161
 
 
 
 
 
 
162
163
164
...
282
283
284
285
 
286
287
288
...
113
114
115
 
 
 
 
 
 
 
116
117
118
...
152
153
154
155
156
157
158
159
160
161
162
163
...
281
282
283
 
284
285
286
287
0
@@ -113,13 +113,6 @@ jQuery.extend({
0
       dataType: type
0
     });
0
   },
0
-
0
- // Create the request object; Microsoft failed to properly
0
- // implement the XMLHttpRequest in IE7, so we use the ActiveXObject when it is available
0
- getAjaxTransport : function() {
0
- return window.ActiveXObject ? new ActiveXObject("Microsoft.XMLHTTP") : new XMLHttpRequest();
0
- },
0
-
0
 
0
   getScript: function( url, callback ) {
0
     return jQuery.get(url, null, callback, "script");
0
@@ -159,6 +152,12 @@ jQuery.extend({
0
     data: null,
0
     username: null,
0
     password: null,
0
+ // Create the request object; Microsoft failed to properly
0
+ // implement the XMLHttpRequest in IE7, so we use the ActiveXObject when it is available
0
+ // This function can be overriden by calling jQuery.ajaxSetup
0
+ xhr:function(){
0
+ return window.ActiveXObject ? new ActiveXObject("Microsoft.XMLHTTP") : new XMLHttpRequest();
0
+ },
0
     accepts: {
0
       xml: "application/xml, text/xml",
0
       html: "text/html",
0
@@ -282,7 +281,7 @@ jQuery.extend({
0
     var requestDone = false;
0
 
0
     // Create the request object
0
- var xhr = jQuery.getAjaxTransport();
0
+ var xhr = s.xhr();
0
 
0
     // Open the socket
0
     // Passing null username, generates a login popup on Opera (#2865)

Comments

    No one has commented yet.