2661: // Create the request object; Microsoft failed to properly 2662: // implement the XMLHttpRequest in IE7, so we use the ActiveXObject when it is available 2663: var xml = window.ActiveXObject ? new ActiveXObject("Microsoft.XMLHTTP") : new XMLHttpRequest(); 2664:
2679: // Set header so the called script knows that it's an XMLHttpRequest 2680: xml.setRequestHeader("X-Requested-With", "XMLHttpRequest"); 2681:
2801: // return XMLHttpRequest to allow aborting the request etc. 2802: return xml;
22: window.__defineSetter__("location", function(url){ 23: var xhr = new XMLHttpRequest(); 24: xhr.open("GET", url);
560: // XMLHttpRequest 561: // Originally implemented by Yehuda Katz
563: window.XMLHttpRequest = function(){ 564: this.headers = {};
568: XMLHttpRequest.prototype = { 569: open: function(method, url, async, user, password){
4786: // Create the request object; Microsoft failed to properly 4787: // implement the XMLHttpRequest in IE7 (can't request local files), 4788: // so we use the ActiveXObject when it is available
4789: // This function can be overriden by calling jQuery.ajaxSetup 4790: xhr: window.XMLHttpRequest && (window.location.protocol !== "file:" || !window.ActiveXObject) ? 4791: function() { 4792: return new window.XMLHttpRequest(); 4793: } :
4972: // Set header so the called script knows that it's an XMLHttpRequest 4973: // Only send the header if it's not a remote XHR
4948: // Create the request object; Microsoft failed to properly 4949: // implement the XMLHttpRequest in IE7 (can't request local files), 4950: // so we use the ActiveXObject when it is available
4951: // This function can be overriden by calling jQuery.ajaxSetup 4952: xhr: window.XMLHttpRequest && (window.location.protocol !== "file:" || !window.ActiveXObject) ? 4953: function() { 4954: return new window.XMLHttpRequest(); 4955: } :
5134: // Set header so the called script knows that it's an XMLHttpRequest 5135: // Only send the header if it's not a remote XHR
Google Home - Google Code - Discuss - Terms of Service - Help - Submit Your Code
©2010 Google - Privacy