showModalDialog的返回值问题
var order_num=obj2.value;
for(var i=1;i<=order_num;i++) {
obj1.innerHTML +=<input type=text name="'+obj+'name'+i+'" style="width:83px" maxlength=18> <select name='+obj+'Notype'+i+'><option value="NI">身份证</option><option value="PP">护照</option><option value="ID">其它</option></select> <input type=text name='+obj+'Cid'+i+' style="width:113px" maxlength="18"> <select name='+obj+'baoxian'+i+'><option value="0">0</option><option value="1" selected>1</option><option value="2">2</option><option value="3">3</option><option value="4">4</option></select> <input type=text name='+obj+'Air'+i+' style="width:103px" maxlength="15"> <input type="button" name="Submit" value="选择员工" onclick=window.showModalDialog("Com_ID.aspx?ComID=<%=ComID%>&UID='+i+'",window,"dialogWidth:513px;DialogHeight=363px;status:no");><br>';
}
弹出Com_ID.aspx后.如何在Com_ID.aspx里面:
Page.ClientScript.RegisterStartupScript(this.GetType(), "", "<script type='text/JavaScript'>window.opener.document.getElementById('AduName" + UID + "').innerText='" + UName + "';window.opener.document.getElementById(Notype" + UID + "').innerText='" + Cid + "';window.close();</script>");"
window.opener在showModalDialog里面不能用的...应该怎么处理
------解决方案--------------------
如需要阅读该回复,请登录或注册CSDN!
------解决方案--------------------
如需要阅读该回复,请登录或注册CSDN!
------解决方案--------------------
如需要阅读该回复,请登录或注册CSDN!
------解决方案--------------------
如需要阅读该回复,请登录或注册CSDN!
------解决方案--------------------JScript code
调用
rst = window.showModalDialog( url,window,"dialogHeight:500px;dialogWidth:550px;center:true;help:No");
if (rst!=null)
{
alert(rst['aa']);
alert(rst['bb']);
}