bsp; catch(e){
try{
xmldoc = new ActiveXObject("Microsoft.XMLHTTP");
}
catch(e){}
}
}
}
//不能创建XMLHTTP类时返回
if(! xmldoc){
return false;
}
//调用CheckState函数
xmldoc.onreadystatechange = CheckState;
xmldoc.open(''GET'',url,true);
xmldoc.send(null);
}else{
getId("listnum").innerHTML = "您输入的地址错误,请重试!"
}
}
//状态检测
function CheckState(){
var response = xmldoc.responseXML.documentElement;
btnSty("loadifo","block")
//收到完整的服务器响应
if(xmldoc.readyState == 1){
getId("loadifo").innerHTML = "连接服务器"
}
else if(xmldoc.readyState == 2){
getId("loadifo").innerHTML = "开始加载数据"
}
else if(xmldoc.readyState == 3){
getId("loadifo").innerHTML = "正在加载数据"
settime(loadtime)
}
else if(xmldoc.readyState == 4){
//HTTP服务器响应值成功
if(xmldoc.status == 200){
//将服务器返回的字符串写到页面中ID为showdiv的区域
getId("loadifo").innerHTML = "加载完成"
settime(ifodis)
num(response)
&nb