/***** XMLHTTPRequest ***********/
var xmlhttp = null;
var curCommand ="";
function getUserID(toolsName,keyID){
//alert("读取数据中,请稍候...");
curCommand = "Load";
//document.all.TipDiv.innerHTML ="读取数据中,请稍候...";
var start_time = (new Date()).getTime();
var url="";
xmlhttp = new CreateXmlHttpRequest(GetSource);
xmlhttp.InitXDom();
url="/Service/Tools.asmx/UseTools";
xmlhttp.AddKey("toolsName",toolsName);
xmlhttp.AddKey("keyID",keyID);
xmlhttp.AddKey("ran",start_time);
xmlhttp.SendGet(url);
}
function GetSource(){
//var scriptInfo = getElement("ScriptDiv");
if(xmlhttp.xhttp.readyState == 4){
if(xmlhttp.xhttp.status == 200){
//alert(unescape(xmlhttp.xhttp.responseText));
xmlhttp.xdom.loadXML(unescape(xmlhttp.xhttp.responseText));
//ExecCommand(xmlhttp.xdom.documentElement.text);
alert(xmlhttp.xdom.documentElement.text);
}else{
//alert (xmlhttp.xhttp.status);
}
}else{
//alert (xmlhttp.xhttp.readyState);
}
}
/*function ExecCommand(str) {
if (curCommand =="Load"){
document.all.TipDiv.innerHTML = str;
}
}
*/
var xmlhttp = null;
var curCommand ="";
function getUserID(toolsName,keyID){
//alert("读取数据中,请稍候...");
curCommand = "Load";
//document.all.TipDiv.innerHTML ="读取数据中,请稍候...";
var start_time = (new Date()).getTime();
var url="";
xmlhttp = new CreateXmlHttpRequest(GetSource);
xmlhttp.InitXDom();
url="/Service/Tools.asmx/UseTools";
xmlhttp.AddKey("toolsName",toolsName);
xmlhttp.AddKey("keyID",keyID);
xmlhttp.AddKey("ran",start_time);
xmlhttp.SendGet(url);
}
function GetSource(){
//var scriptInfo = getElement("ScriptDiv");
if(xmlhttp.xhttp.readyState == 4){
if(xmlhttp.xhttp.status == 200){
//alert(unescape(xmlhttp.xhttp.responseText));
xmlhttp.xdom.loadXML(unescape(xmlhttp.xhttp.responseText));
//ExecCommand(xmlhttp.xdom.documentElement.text);
alert(xmlhttp.xdom.documentElement.text);
}else{
//alert (xmlhttp.xhttp.status);
}
}else{
//alert (xmlhttp.xhttp.readyState);
}
}
/*function ExecCommand(str) {
if (curCommand =="Load"){
document.all.TipDiv.innerHTML = str;
}
}
*/