VaR xmldoc, X;
Function xmlhttp_async (URL, onready ){
If (url = NULL | url = "") return false;
If (window. XMLHttpRequest ){
X = new window. XMLHttpRequest ();
If (X. overridemimetype) // ie Error
X. overridemimetype ('text/xml'); // if this parameter is not specified, safafi, such as aspx, or chrome, may be null.
// Https://developer.mozilla.org/cn/AJAX/%e5%bc%80%e5%a7%8b this page has good content
}
Else if (window. activexobject ){
X = new activexobject ("Microsoft. XMLHTTP ");
}
X. Open ("get", URL, true );
X. Send (null );
If (onready! = ""){
X. onreadystatechange = function (){
If (X. readystate = 4 & (X. Status = 200 | X. Status = 304 )){
Xmldoc = x. responsexml; // you can obtain it from the outside.
Eval (onready );
}
}
}
}
Call xmlhttp_async (XML address, read and execute the function)
Read null values in Firefox using xmldoc. getelementsbytagname ("XXXX") [I]. firstchild. Data