r.jsp
<form name='form1' id='form1' method='post' >
for(){
//<iframe name=iframe<%=i%> src='MB_T3_u.jsp?count=<%=i%>'> </iframe>
<iframe name=iframe<%=0%> src='MB_T3_u.jsp?count=<%=0%>'> </iframe>
<iframe name=iframe<%=1%> src='MB_T3_u.jsp?count=<%=1%>'> </iframe>
<iframe name=iframe<%=4%> src='MB_T3_u.jsp?count=<%=4%>'> </iframe>
<iframe name=iframe<%=7%> src='MB_T3_u.jsp?count=<%=7%>'> </iframe>
;
;
;
}
<tr><td colspan="2" align="right" nowrap> <img src="../img/queding.jpg" onClick="sub_mit()"></td></tr>
</form>'MB_T3_u.jsp
<form name=subiframe method=post id=subiframe >
<input --------
</form>在r页面里,iframe打开的数量不是固定的,由<%=i%>定,怎么在r提交多个打开的MB_T3_u的form最后在更新r页面的值。
<form name='form1' id='form1' method='post' >
for(){
//<iframe name=iframe<%=i%> src='MB_T3_u.jsp?count=<%=i%>'> </iframe>
<iframe name=iframe<%=0%> src='MB_T3_u.jsp?count=<%=0%>'> </iframe>
<iframe name=iframe<%=1%> src='MB_T3_u.jsp?count=<%=1%>'> </iframe>
<iframe name=iframe<%=4%> src='MB_T3_u.jsp?count=<%=4%>'> </iframe>
<iframe name=iframe<%=7%> src='MB_T3_u.jsp?count=<%=7%>'> </iframe>
;
;
;
}
<tr><td colspan="2" align="right" nowrap> <img src="../img/queding.jpg" onClick="sub_mit()"></td></tr>
</form>'MB_T3_u.jsp
<form name=subiframe method=post id=subiframe >
<input --------
</form>在r页面里,iframe打开的数量不是固定的,由<%=i%>定,怎么在r提交多个打开的MB_T3_u的form最后在更新r页面的值。
解决方案 »
- 求助:如何在JBOSS7下发布CXF的项目
- 新手使用SSH框架,发现表单提交的数据在action类中全部为null
- 为什么在tomcat里不能播放flash ,单独播放可以?
- 一个很复杂的动态页面设置,请各位高手帮忙,谢谢
- 奇怪:为什么取当前时间Util.getFormatDate("yyyy-MM-dd HH:mm")取出来的是格林威治时间?请问如何取出当前北京时间。
- 请问tomcat的<Context docBase路径若为d:\test该怎么写??
- 怎样将STRING类型的数据存入数据库中数据类型为CHAR的字段中
- 告急:if语句判断的问题
- 请问如何进行登陆验证?
- tomcat启动 报 Unable to process web resource
- 大伙帮帮忙 struts的validator问题
- 100分!麻烦那些高手指教哈!!
没试过,思路你看行不.
比如在example.htm里嵌入test.htm文件,并控制test.htm里一些标记对象:
<Iframe src="test.htm" id="test" width="250" height="200" scrolling="no" frameborder="0"></iframe> test.htm文件代码为:
<html>
<body>
<h1 id="myH1">hello,my boy</h1>
</body>
</html>
如我们要改变ID号为myH1的H1标记里的文字为hello,my dear,则可用:
document.myH1.innerText="hello,my dear"(其中,document可省)
在example.htm文件中,Iframe标记对象所指的子窗体与一般的DHTML对象模型一致,对对象访问控制方式一样2、在子窗体中访问并控制父窗体中对象
在子窗体中我们可以通过其parent即父(双亲)对象来访问父窗口中的对象。
如example.htm:
<html>
<body onclick="alert(tt.myH1.innerHTML)">
<Iframe name="tt" src="frame1.htm" width="250" height="200" scrolling="no" frameborder="0"></iframe>
<h1 id="myH2">hello,my wife</h1>
</body>
</html>
如果要在frame1.htm中访问ID号为myH2中的标题文字并将之改为"hello,my friend",我们就可以这样写:
parent.myH2.innerText="hello,my friend"
这里parent对象就代表当前窗体(example.htm所在窗体),要在子窗体中访问父窗体中的对象,无一例外都通过parent对象来进行。
Iframe虽然内嵌在另一个HTML文件中,但它保持相对的独立,是一个“独立王国“哟,在单一HTML中的特性同样适用于浮动帧中。给你的每个iframe设定一个id就可以分别控制了~
用for来循环十次,这里的循环变量怎么定,从0--9,还是......;