RT,用了几个方法貌似不行,子窗口我是用WINDOW.OPEN打开的,求高手
解决方案 »
- 求助一个sql语句的写法
- ie8不显示边框
- HibernateTemplate 保存无效的问题
- 使用struts上传文件的发生的奇怪错误,请大家帮忙!
- jsp中导出已经生成好的excel,如果名字太长了,保存文件时会自动给你改文件名的问题
- jsp中用表达式语言如何判断密码框中输入的密码长度小于某个数值?
- 好困惑的问题。关于jspsmartupload.
- 405 POST not supported ???
- JDBC怎么了?
- applet调用servlet要特别设置什么吗?谢谢
- 请问我的事务没有con.commit();但是下面的 insert还是没有回滚呢?
- jsp+sql server2005简单登录功能,总是无法登录成功,求高手指教!
window.close();
<form action="${contextPath }/expert/expertExPoi.action" method="post" enctype="multipart/form-data">
<table>
<tr>
<td>
EXCEL上传更新:</br></br>
<input type="file" name="poiExcelFile"/>
</br>
<input src="images/confirm.gif" type="image"/>
</td>
</tr>
</table>
</form>
</body>
我是用这个打开窗口的,通过action跳转另外一个页面显示成窗口模式
当另外个页面里有提交的时候,触发js时间,让window.close();同时设置window.returnValue = "true";
当子窗口关闭后,窗口函数就会返回一个值
那么我在判断ret就可以判断。是否window关闭
然后刷新父窗口。
希望对你有帮助!
var value=window.open(.....);
if(value==1)
刷新代码....
子窗口:
......
window.returnValue=1;
window.close();
opener.document.location.reload();
window.close();
}
不知道怎么结合在一起用啊,我表单提交完了以后怎么把这个插进去呢?因为method="post" enctype="multipart/form-data"都不能少的,js里不知道怎么放进去
opener.document.location.reload();
window.close();
用这个倒是成功了,但主页面的数据没有刷新,这个怎么弄?我的主页面是3个frame整合起来的
window.openner.location.reload();
window.close();放在子页面
window.close();
window.close();
这个写在你的子页面的js事件里。。