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
<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吧,这代码写的太乱了
showModalDialog的用法
javascript showModalDialog window.open
多层showModalDialog窗口如何控制父窗口?
showModalDialog 和 window.open 有什么区别
window.showModalDialog语句 ,哪错了
问一个window.showModalDialog的传值问题
关于用showModalDialog弹出窗口中刷新iframe的问题。
window.showModalDialog返回多个参数的问题
谁知道javascript中的window.showModalDialog(URL,dialogArgments.features)中第二个参数是怎么用的