87,992
社区成员
发帖
与我相关
我的任务
分享
window.showModalDialog(url,window,"dialogWidth:" + Width + "px;dialogHeight:" + Height + "px;center:yes;status:no;scroll:yes;help:no;location=no");
var sData = dialogArguments;
var father_Row= sData.getNewData('cur');
if(father_Row!=null)
{
var name= document.getElementById("name");
name.value= father_Row.cells(1).innerText;
var xmlhttp;
try {
xmlhttp = new XMLHttpRequest();
} catch (e) {
xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
}
xmlhttp.open("get", "WebForm3.aspx?ID="+name, false);
xmlhttp.setRequestHeader('Content-type', 'application/x-www-form-urlencoded');
//xmlhttp.setRequestHeader("If-Modified-Since","0");
xmlhttp.send("");
xmlhttp.onreadystatechange = function() {
if (4 == xmlhttp.readyState) {
if (200 == xmlhttp.status) {
var Bodys = xmlhttp.responseText;
alert("获得内容:"+Bodys);
var div1= document.getElementById("div1");
div1.innerHTML=Bodys;
}
else
{
alert(xmlhttp.status);
}
}
else
{
alert(xmlhttp.readyState);
}
}
}