Subversion Repositories DevTools

Rev

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

Rev 29 Rev 3947
Line 74... Line 74...
74
}
74
}
75
 
75
 
76
function GetXmlHttpObject(handler) {
76
function GetXmlHttpObject(handler) {
77
    var objXmlHttp = null;    //Holds the local xmlHTTP object instance
77
    var objXmlHttp = null;    //Holds the local xmlHTTP object instance
78
 
78
 
-
 
79
    if (typeof(handler) != "function") {
-
 
80
      alert('Internal: GetXmlHttpObject called without a handler');
-
 
81
      return;
-
 
82
    }
79
    //Depending on the browser, try to create the xmlHttp object
83
        //Depending on the browser, try to create the xmlHttp object
80
    if (is_ie){
84
    if (is_ie){
81
        //The object to create depends on version of IE
85
        //The object to create depends on version of IE
82
        //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
83
        var strObjName = (is_ie5) ? 'Microsoft.XMLHTTP' : 'Msxml2.XMLHTTP';
87
        var strObjName = (is_ie5) ? 'Microsoft.XMLHTTP' : 'Msxml2.XMLHTTP';
84
        
88