如何结合JSP和JS中的ShowModalDialog实现注册返回信息,并让父窗体重新加载的功能

来源:百度知道 编辑:UC知道 时间:2024/05/31 10:06:22
希望有人能提供我个使用JSP能实现的

window.opener.....

js中模态对话框(showModalDialog)示例
1.commune_create.jsp
Java代码
<%@ page contentType="text/html;charset=GBK" %>
<%@ include file="/page/common/taglibs.jsp"%>

<HTML>
<HEAD>
<TITLE>系统主操作区页面模板</TITLE>

<LINK href="${ctx}/etc/css/eoms.css" type=text/css rel=stylesheet>
<script>
function openSelectAdmin(){
var reval=window.showModalDialog("${ctx}/page/selectadmin/admin_select.jsp","","dialogHeight=400px; dialogWidth=500px;status=no");
var admin="";
for(var i=0;i<reval.length;i=i+2)
admin=admin+reval[i]+",";
admin=admin.substring(0,admin.length-1);
document.all("admin").value=admin;

}
</script>
</HEAD>
<BOD