showModalDialog 接受值的问题

来源:百度知道 编辑:UC知道 时间:2024/05/14 09:43:54
页面一得代码
<html>
<body>
<%
Randomize
rad=int(121321*rnd+1234)
%>
<form id="my1" name="my1" >
<input type="text" name="txts" id="txts" onClick="javascript:ShowDialog('namelist.asp?id=<%response.Write(rad)%>',this.id,this.form.id,100,300) ;"/>
<input type="text" name="txt2" id="txt2" onClick="javascript:ShowDialog('namelist.asp?id=<%response.Write(rad)%>',this.id,this.form.id,100,300) ;"/>
</form>

</body>
</html>
<script language="JavaScript">
function ShowDialog(url,whichText,whichForm,width, height, optValidate) {

window.whichT=whichText;
window.whichF=whichForm;
var arr = showModalDialog(url,window, "dialogWidth:" + width + "px;dialogHeight:" + he

var c=eval("document."+thisform+"."+ thisid).checked;
这句话肯定返回false啊,thisform,thisid都没赋值,另外想判断check不用非得用eval吧,这代码写的太乱了