我用window.showmodaldialog打开的叶面里,把表单提交到iframe里,找不到iframe(ie5.0)??

nittystone 2002-07-16 12:17:01
如题!
...全文
67 10 打赏 收藏 转发到动态 举报
写回复
用AI写文章
10 条回复
切换为时间正序
请发表友善的回复…
发表回复
nittystone 2002-07-16
  • 打赏
  • 举报
回复
袄 。。我明白了
其实在dialog窗口里可以读打开爷的对象的。。。
爱。。。
meizz 2002-07-16
  • 打赏
  • 举报
回复
在主页面里:
<html><body>
<input type=button value=弹出网页对话框 onclick="showModalDialog('pop.htm', '','dialogWidth:360px;dialogheight:120px;status:no;help:no')">
<iframe name=test></iframe>
<!-- 如果你要这个iframe隐藏的话<iframe name=test style="display: none"></iframe> -->
</body></html>

在pop.htm页面里:
<html><body style="BACKGROUND: menu" onkeydown=if(event.keyCode==27)window.close()>
<form action="*.asp" target=test>
<input type=text name=name value=meizz><br>
<input type=submit value=submit></form>
</body></html>
meizz 2002-07-16
  • 打赏
  • 举报
回复
在主页面里:
<html><body>
<input type=button value=弹出网页对话框 onclick="showModalDialog('pop.htm', '','dialogWidth:360px;dialogheight:120px;status:no;help:no')">
<iframe name=test></iframe>
<!-- 如果你要这个iframe隐藏的话<iframe name=test style="display: none"></iframe> -->
</body></html>

在pop.htm页面里:
<html><body style="BACKGROUND: menu" onkeydown=if(event.keyCode==27)window.close()>
<form action="*.asp" target=test>
<input type=text name=name value=meizz><br>
<input type=submit value=submit></form>
ssm1226 2002-07-16
  • 打赏
  • 举报
回复
ie6能行?
nittystone 2002-07-16
  • 打赏
  • 举报
回复
to lanying(蓝鹰.net)

<form name=frmA target=mini>
<input type=button onclick=frmA.submit()>
</form>
<iframe name=mini id=mini></iframe>
nittystone 2002-07-16
  • 打赏
  • 举报
回复
to bencalie(Bencalie
但我在ie6下运行正常啊,有一些ie5也可以。。
nittystone 2002-07-16
  • 打赏
  • 举报
回复
to meizz(梅花雨)
给点脚本侃侃 showmodaldialog 没有opener对象 我怎摸半?
bencalie 2002-07-16
  • 打赏
  • 举报
回复
iframe在modaldialog里面?你最好把表单放入frame里,不然提交都是在新窗口的
meizz 2002-07-16
  • 打赏
  • 举报
回复
showmodaldialog出来的对话框是不能提交给showmodaldialog本身的页面的,
你可以在主页面上建立一个iframe来接收showmodaldialog页面的form提交
lanying 2002-07-16
  • 打赏
  • 举报
回复
表单能提交到iframe理?

28,390

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧