请问showModalDialog产生的弹出窗如何提交到自身? window.returnValue=getopenwin.value;//当然这是举例,getopenwin是你新开的窗口的获取到的值,这样可以传递到下页 window.close(); 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 加上<base target="_self">IE6.0上通过, 在你的showModalDialog中作这样的提交按钮<INPUT class=button onclick="window.returnValue = 要传递的表单的值;window.close();" type=button value=确 定> 楼上各位说的是行不通的..对话框不允许以任何方式改变当前页的url to yonghengdizhen(卖CSDN门票的小贩) 可以啊IE5.5+=======================================<iframe name="test" width="0" height="0"></iframe><form name="form1" method="post" action="safasf.asp" target="test"> <input type="text" name="textfield"> <input type="submit" name="Submit" value="Submit"></form> to awaysrain(绝对零度) 你可以实际运行一下你的代码试试看.我的是ie6,目前为止还没有运行成功过 可以的,你把action改成http://www.csdn.net提交后有弹出窗口就说明提交成功了 我的方法虽然看上去比较麻烦,但可以解决你的问题。ret = window.showModalDialog("dialogctr.do","myApp.do?param1=123¶m2=456","dialogWidth:500px;dialogHeight:400px");dialogctr.do是个简单到家的action,里面的内容是forward到一个指定的框架jspjsp内容:<HTML><META http-equiv="Content-type" content="text/html;charset=gb2312"><SCRIPT language="javascript"><!-- function funLoad() { var oFormObj = window.dialogArguments; dialog.location.href = oFormObj; }// --></SCRIPT><FRAMESET border="2" framespacing="1" frameborder="1" onLoad="funLoad()" cols="*"> <FRAME src="" name="dialog" scrolling="auto" marginwidth="10" target="dialog"> <NOFRAMES> <BODY> <P>不支持frame<P> </BODY> </NOFRAMES> </sFRAME></FRAMESET></HTML>至于为什么要加一个框架action,这样可以解决调用时的路径变化问题,不用也可以,直接换成frame页面就是了。myApp.do的写法和别的do没什么不一样,里面的jsp也不需要特殊处理。 http://www.csdn.net/develop/article/15/15113.shtm 让网页最小化按钮变灰 https网页里面包含了一个Flex插件,总是“报是否只查看安全传送的网页内容”,如何解决 求个像QQ空间里不晃动的浮动层例子 求这种功能,谢谢 谁能帮我搞定一个含有跳转的JS代码吗? javascript中window.open后在子窗体中怎么得到父窗体的值? 关于CSS使用? 爽啊,请大虾解释一下namespace这个东西。顺便现一下丑。 关于web的数据库查询和弹出菜单,谢谢啦!大虾! 有关.ajax跨域的问题 如何取消当前style中的下划线效果? 求正则表达式:如何匹配嵌套表格标签
IE6.0上通过,
<INPUT class=button onclick="window.returnValue = 要传递的表单的值;window.close();" type=button value=确 定>
对话框不允许以任何方式改变当前页的url
IE5.5+
=======================================
<iframe name="test" width="0" height="0"></iframe>
<form name="form1" method="post" action="safasf.asp" target="test">
<input type="text" name="textfield">
<input type="submit" name="Submit" value="Submit">
</form>
你可以实际运行一下你的代码试试看.我的是ie6,目前为止还没有运行成功过
ret = window.showModalDialog("dialogctr.do","myApp.do?param1=123¶m2=456","dialogWidth:500px;dialogHeight:400px");dialogctr.do是个简单到家的action,里面的内容是forward到一个指定的框架jsp
jsp内容:
<HTML>
<META http-equiv="Content-type" content="text/html;charset=gb2312"><SCRIPT language="javascript">
<!--
function funLoad()
{
var oFormObj = window.dialogArguments;
dialog.location.href = oFormObj; }
// -->
</SCRIPT>
<FRAMESET border="2" framespacing="1" frameborder="1" onLoad="funLoad()" cols="*">
<FRAME src="" name="dialog" scrolling="auto" marginwidth="10" target="dialog">
<NOFRAMES>
<BODY>
<P>不支持frame<P>
</BODY>
</NOFRAMES>
</sFRAME>
</FRAMESET>
</HTML>至于为什么要加一个框架action,这样可以解决调用时的路径变化问题,不用也可以,直接换成frame页面就是了。
myApp.do的写法和别的do没什么不一样,里面的jsp也不需要特殊处理。