Subversion Repositories DevTools

Rev

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

Rev 3894 Rev 3942
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
 
73
    if (typeof(handler) != "function") {
79
    if (typeof(handler) != "function") {
74
      alert('Internal: GetXmlHttpObject called without a handler');
80
      alert('Internal: GetXmlHttpObject called without a handler');
Line 105... Line 111...
105
    
111
    
106
    //Return the instantiated object
112
    //Return the instantiated object
107
    return objXmlHttp;
113
    return objXmlHttp;
108
}
114
}
109
 
115
 
110
 
-
 
111
 
-
 
112
//-->
116
//-->
113
117