窗口B如何向(间接)父窗口A回填复选框所选内容? help me out!!!请指点 参阅使用parent.去调用或,windowsId调用 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 如果你能到b页的正确的select文本框中得到正确的值,那就再你给b的select文本框负值的时候~吧a的engineer文本框负值呗~...parent.document.all.engineer.value=document.all.select.value;... 如果你能在b页select文本框中得到正确的值,那就再你给b的select文本框负值的时候~吧a的engineer文本框负值呗~...parent.document.all.engineer.value=document.all.select.value;... 在b中做一个函数function writeToMain() { var totalEngineer=document.forms[0].select.value; opener.document.engineer.value=totalEngineer; self.close(); }应该可以 给你个程序参考:----------------openwintest.htm<html><head><title>openwin</title><script language="JavaScript"><!--var winname;function openwin(){ var text=document.form1.email.value; var result_win=window.open("showdate.htm","mywin","menubar=no,toolbar=yes,statusbar=yes,width=500,height=200"); winname=result_win; result_win.document.f.text.value=text; result_win.document.close();}function toson(){ window.blur(); winname.focus();}//--></script></head><body><form method="POST" name="form1"><p><textarea rows="8" name="email" cols="40">jkl;jk </textarea></p><p><input type="button" value="open" name="open" onclick="openwin()"> <input type="button" value="toto" name="toto" onclick="toson()"> </p></form></body></html> ---------------------showdate.htm<html><head><title>显示当前时间 </title><script language="JavaScript" src="showdate.js"></script></head><body>今天是:<script language="JavaScript" >showdate();</script><form name="f"><input type="text" name="text"></form></body></html>--------------如果不行再探讨。 谢谢各位不行关键是我的上页,下页要提交一次叶面,所以Parent变了,是把?function nav(url) { document.form1.action = url; document.all.form1.submit(); } 用 opener 来引用父窗体,我想能行。比如:A :父窗体 ,form1为窗体中的表单名,txt为文本框名。B :被打开的窗体在B中用:opener.form1.txt = "sdjhfj" 来操作。 谢谢各位不行关键是我的上页,下页要提交一次叶面,所以Parent变了,是把? 谢谢大家,又遇到新问题了我的"取消分配"按钮(Form其中也有一个submit的按钮可以提交到另一个页面),点击需要执行一个JSP文件后,再关闭此窗口,可下面为什么不对?Html:<input type="button" value="取消分配" onClick="nav('restore.jsp?T1=<%=request.getParameter("RequestId")%>')">JS为:function nav(url) { document.form1.action = url; document.form1.submit() self.close(); } 谢谢大家,又遇到新问题了我的"取消分配"按钮(Form其中也有一个submit的按钮可以提交到另一个页面),点击需要执行一个JSP文件后,再关闭此窗口,可下面为什么不对?Html:<input type="button" value="取消分配" onClick="nav('restore.jsp?T1=<%=request.getParameter("RequestId")%>')">JS为:function nav(url) { document.form1.action = url; document.form1.submit() self.close(); } 最近自己做的企业应用(思维导图、战略地图、表单设计器、商业智能、平衡计分卡) 更改表数据问题 求jsp日程管理程序 怎么通过jspSmartUpload把一个word文件上传到 ms sql数据库里? 我不信? 急需一个统计网站浏览次数的计数器,最好漂亮点,好用就给分! java中如何调用windows的动态链接库呢(在线........) 用网页登录数据库,如果登录失败,就显示"失败!请重性登录" 一个有趣的算法 请问各位大侠,有谁知道怎么样在jsp文件中把一个BufferedImage对象给直接显示出来吗? 急切寻找开发项目。谁有项目可以让我参予一下。 还没有解决:把时间插入数据库的问题
...
parent.document.all.engineer.value=document.all.select.value;
...
...
parent.document.all.engineer.value=document.all.select.value;
...
function writeToMain()
{
var totalEngineer=document.forms[0].select.value;
opener.document.engineer.value=totalEngineer;
self.close();
}
应该可以
----------------openwintest.htm
<html>
<head>
<title>openwin</title>
<script language="JavaScript">
<!--
var winname;
function openwin()
{
var text=document.form1.email.value;
var result_win=window.open("showdate.htm","mywin","menubar=no,toolbar=yes,statusbar=yes,width=500,height=200");
winname=result_win;
result_win.document.f.text.value=text;
result_win.document.close();
}
function toson()
{
window.blur();
winname.focus();
}
//-->
</script>
</head>
<body>
<form method="POST" name="form1">
<p><textarea rows="8" name="email" cols="40">jkl;jk
</textarea></p>
<p><input type="button" value="open" name="open" onclick="openwin()">
<input type="button" value="toto" name="toto" onclick="toson()">
</p>
</form>
</body>
</html>
---------------
------showdate.htm
<html>
<head>
<title>显示当前时间 </title>
<script language="JavaScript" src="showdate.js">
</script>
</head>
<body>
今天是:
<script language="JavaScript" >
showdate();
</script>
<form name="f">
<input type="text" name="text">
</form>
</body>
</html>
--------------
如果不行再探讨。
关键是我的上页,下页要提交一次叶面,所以Parent变了,是把?
function nav(url) {
document.form1.action = url;
document.all.form1.submit();
}
比如:
A :父窗体 ,form1为窗体中的表单名,txt为文本框名。
B :被打开的窗体
在B中用:opener.form1.txt = "sdjhfj" 来操作。
不行
关键是我的上页,下页要提交一次叶面,所以Parent变了,是把?
我的"取消分配"按钮(Form其中也有一个submit的按钮可以提交到另一个页面),点击需要执行一个JSP文件后,再关闭此窗口,可下面为什么不对?
Html:<input type="button" value="取消分配"
onClick="nav('restore.jsp?T1=<%=request.getParameter("RequestId")%>')">JS为:function nav(url) {
document.form1.action = url;
document.form1.submit()
self.close();
}
我的"取消分配"按钮(Form其中也有一个submit的按钮可以提交到另一个页面),点击需要执行一个JSP文件后,再关闭此窗口,可下面为什么不对?
Html:<input type="button" value="取消分配"
onClick="nav('restore.jsp?T1=<%=request.getParameter("RequestId")%>')">JS为:function nav(url) {
document.form1.action = url;
document.form1.submit()
self.close();
}