Subversion Repositories DevTools

Rev

Rev 1281 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1281 Rev 3894
Line 68... Line 68...
68
}
68
}
69
 
69
 
70
function GetXmlHttpObject(handler) {
70
function GetXmlHttpObject(handler) {
71
    var objXmlHttp = null;    //Holds the local xmlHTTP object instance
71
    var objXmlHttp = null;    //Holds the local xmlHTTP object instance
72
 
72
 
-
 
73
    if (typeof(handler) != "function") {
-
 
74
      alert('Internal: GetXmlHttpObject called without a handler');
-
 
75
      return;
-
 
76
    }
73
    //Depending on the browser, try to create the xmlHttp object
77
        //Depending on the browser, try to create the xmlHttp object
74
    if (is_ie){
78
    if (is_ie){
75
        //The object to create depends on version of IE
79
        //The object to create depends on version of IE
76
        //If it isn't ie5, then default to the Msxml2.XMLHTTP object
80
        //If it isn't ie5, then default to the Msxml2.XMLHTTP object
77
        var strObjName = (is_ie5) ? 'Microsoft.XMLHTTP' : 'Msxml2.XMLHTTP';
81
        var strObjName = (is_ie5) ? 'Microsoft.XMLHTTP' : 'Msxml2.XMLHTTP';
78
        
82