65: throw{code:10001,data:node.nodeName};} 66: if("undefined"!=typeof XMLHttpRequest){xajax.tools.getRequestObject=function(){return new XMLHttpRequest();} 67: }else if("undefined"!=typeof ActiveXObject){xajax.tools.getRequestObject=function(){try{return new ActiveXObject("Msxml2.XMLHTTP.4.0");}catch( ...
2621: // Create the request object; Microsoft failed to properly 2622: // implement the XMLHttpRequest in IE7, so we use the ActiveXObject when it is available 2623: var xml = window.ActiveXObject ? new ActiveXObject("Microsoft.XMLHTTP") : new XMLHttpRequest(); 2624:
2639: // Set header so the called script knows that it's an XMLHttpRequest 2640: xml.setRequestHeader("X-Requested-With", "XMLHttpRequest"); 2641: } catch(e){}
2756: // return XMLHttpRequest to allow aborting the request etc. 2757: return xml;
2458: // Create the request object; Microsoft failed to properly 2459: // implement the XMLHttpRequest in IE7, so we use the ActiveXObject when it is available 2460: var xml = window.ActiveXObject ? new ActiveXObject("Microsoft.XMLHTTP") : new XMLHttpRequest(); 2461:
2474: // Set header so the called script knows that it's an XMLHttpRequest 2475: xml.setRequestHeader("X-Requested-With", "XMLHttpRequest"); 2476:
2566: // return XMLHttpRequest to allow aborting the request etc. 2567: return xml;
1413: return Try.these( 1414: function() {return new XMLHttpRequest()}, 1415: function() {return new ActiveXObject('Msxml2.XMLHTTP')},
1538: var headers = { 1539: 'X-Requested-With': 'XMLHttpRequest', 1540: 'X-Prototype-Version': Prototype.Version,
1548: /* Force "Connection: close" for older Mozilla browsers to work 1549: * around a bug where XMLHttpRequest sends an incorrect 1550: * Content-length header. See Mozilla Bugzilla #246651.
2786: },getXMLHttpRequest:function(){ 2787: var self=arguments.callee; 2788: if(!self.XMLHttpRequest){
2855: req.abort(); 2856: },sendXMLHttpRequest:function(req,_30b){ 2857: if(typeof (_30b)=="undefined"||_30b===null){
2920: return url; 2921: },doSimpleXMLHttpRequest:function(url){ 2922: var self=MochiKit.Async;
Google Home - Google Code - Discuss - Terms of Service - Help - Submit Your Code
©2010 Google - Privacy