Subversion Repositories DevTools

Rev

Rev 119 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 119 Rev 3959
Line 65... Line 65...
65
function xmlHttp_Get(xmlhttp, url) {
65
function xmlHttp_Get(xmlhttp, url) {
66
    xmlhttp.open('GET', url, true);
66
    xmlhttp.open('GET', url, true);
67
    xmlhttp.send(null);
67
    xmlhttp.send(null);
68
}
68
}
69
 
69
 
-
 
70
// XMLHttp send GET request but wait for return;
-
 
71
function xmlHttp_Get_Synch(xmlhttp, url) {
-
 
72
    xmlhttp.open('GET', url, false);
-
 
73
    xmlhttp.send(null);
-
 
74
}
-
 
75
 
70
function GetXmlHttpObject(handler) {
76
function GetXmlHttpObject(handler) {
71
    var objXmlHttp = null;    //Holds the local xmlHTTP object instance
77
    var objXmlHttp = null;    //Holds the local xmlHTTP object instance
72
 
78
 
-
 
79
    if (typeof(handler) != "function") {
-
 
80
      alert('Internal: GetXmlHttpObject called without a handler');
-
 
81
      return;
-
 
82
    }
73
    //Depending on the browser, try to create the xmlHttp object
83
        //Depending on the browser, try to create the xmlHttp object
74
    if (is_ie){
84
    if (is_ie){
75
        //The object to create depends on version of IE
85
        //The object to create depends on version of IE
76
        //If it isn't ie5, then default to the Msxml2.XMLHTTP object
86
        //If it isn't ie5, then default to the Msxml2.XMLHTTP object
77
        var strObjName = (is_ie5) ? 'Microsoft.XMLHTTP' : 'Msxml2.XMLHTTP';
87
        var strObjName = (is_ie5) ? 'Microsoft.XMLHTTP' : 'Msxml2.XMLHTTP';
78
        
88
        
Line 101... Line 111...
101
    
111
    
102
    //Return the instantiated object
112
    //Return the instantiated object
103
    return objXmlHttp;
113
    return objXmlHttp;
104
}
114
}
105
 
115
 
106
 
-
 
107
 
-
 
108
//-->
116
//-->
109
117