我的代码:index.jsp:
...
<Iframe src="frmLeft.html" id="left" name="left" width="100%" height="100%" scrolling="no" frameborder="0" class="m" ></iframe>
<Iframe id="main" name="main" width="100%" height="100%" scrolling="no" frameborder="0" class="m" ></iframe>
...
frmLeft.html:
...
<form name="form1" method="post" action="frmMain.jsp" target="main">
<input type="text" name="fromCity" size="10"/>
<input type="submit" name="btnFindByStation" id="btnFindByStation" value="查询" />
</form>
...
left这个Iframe里显示的是ftmLeft.html
我想要在left里按下“查询”按钮后在main这个Iframe里显示出frmMain.jsp这个页面,应该怎么做呢??以上代码不行,target没有效果!请高手指教!
...
<Iframe src="frmLeft.html" id="left" name="left" width="100%" height="100%" scrolling="no" frameborder="0" class="m" ></iframe>
<Iframe id="main" name="main" width="100%" height="100%" scrolling="no" frameborder="0" class="m" ></iframe>
...
frmLeft.html:
...
<form name="form1" method="post" action="frmMain.jsp" target="main">
<input type="text" name="fromCity" size="10"/>
<input type="submit" name="btnFindByStation" id="btnFindByStation" value="查询" />
</form>
...
left这个Iframe里显示的是ftmLeft.html
我想要在left里按下“查询”按钮后在main这个Iframe里显示出frmMain.jsp这个页面,应该怎么做呢??以上代码不行,target没有效果!请高手指教!
解决方案 »
- 关于提交表单参数个数确定·struts1.x该如何去接收?
- onclick 跳转 双击表格任一行,获取该行所有列的值 并且怎么把值传递给frameset设定的另外一个frame
- spring初学问题
- 从Alfresco下载文件到本地磁盘的问题.
- Abator 生成的Example的,怎么用selectByExample呢?
- 到底有人用easy struts做开发没有啊?
- 谁能举个struts的实例,我搞了2天也没实现,好像知道是那么回事,就是运行不通过!
- 我疯掉了,大吓帮帮忙!!!
- 高分求WebShere的 env.put(Context.PROVIDER_URL, ”全不写出来“)的完整写法,在线等待。
- ASII 编码转为中文
- WSDL文件中的错误,请高手帮忙解决下
- 那里有用axis的详细资料
你可以到如下地址去看看关于iframe的操作:http://www.w3schools.com/TAGS/tag_iframe.asp
<input type="submit" name="btnFindByStation" id="btnFindByStation" value="查询" onclick="search('你的查询条件');"/> js:
function search(value) {
document.getElementById("main").src = "your.do?option="+value;
}
点击查询,重新设置main这个frame的src