用window.open()打开窗口时,传递测试应该这么写
window.open('b.jsp?c=xxxxxxxxxxx','','height=200, width=500,scrollbars=yes,resizable=yes'
弹出窗口不会得到submit的值
window.open('b.jsp?c=xxxxxxxxxxx','','height=200, width=500,scrollbars=yes,resizable=yes'
弹出窗口不会得到submit的值
解决方案 »
- spring配置 参数注入,后台取值为NULL
- 实在是没招了,过滤器为什么把图片都过滤掉了!!!!!同志们帮帮我。
- <nested:select 问题,急
- 求内页窗口的代码...虽然我的分不多但希望大家帮帮忙
- 怎样提取ajax公共的部分?在页面中有多个要求ajax的地方,会很长的
- 用JSP链接SQL2000出现的错误:ClassNotFoundException: com.microsoft.sqlserver.SQLServerDriver
- 小弟想做一个论坛!!请教!!急急急!!
- easy ui 的datagrid demo怎么显示json数据
- 文件上传问题
- 呵呵,我今天发现一个好东西!
- 急呀!!!!
- 请教一个SERVLET的路径的问题,分不多,望高手指教!!!解决马上送分!!!
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>New Page 1</title>
</head>
<body>
function btnTest_onclick()
{
var msg;
var page;
param=new Array(2);
param[0]=frmtest.c.value;
param[1]=frmtest.……;
……
page="b.jsp";
msg=window.showModalDialog(page,param,"dialogHeight: 220pt; dialogWidth: 400pt;center: Yes;resizable: Yes;status:no;scroll:no");
}
<form id=frmtest>
<p><input type="text" name="c" size="20>
<input type="button" name="btntest" value="提交" id="btntest" onClick="javascript:btnTest_onclick()">
<p>
</form>
</body>
</html>
应该行,回去试试
window.open('b.jsp?c='+form.c.value,'','height=200, width=500,scrollbars=yes,resizable=yes'}
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>New Page 1</title>
</head>
<script language="JavaScript">
fnction test(){
window.open('b.jsp?c='+frmtest.c.value,'','height=200, width=500,scrollbars=yes,resizable=yes'}
</script>
<body>
<form name=frmtest>
<p><input type="text" name="c" size="20>
<input type="button" name="btntest" value="提交" id="btntest" onClick="javascript:test()">
<p>
</form>
</body>
</html>