日期:2014-05-16  浏览次数:20451 次

iframe中提交数据的问题
主页面中包括一个查询表单,一个iframe,想把查询表单中的查询条件传到iframe中,查询结果显示在iframe中?如何实现?

<form   name= "schForm "   method= "post ">
<input   type=hidden   name= "schID "   value= "aaa ">

查询内容: <input   type=text   name= "schContent ">
<input   type=submit   value= "查询 ">
</form>

<iframe   name= "fmFrame "   src= " "> </iframe>

------解决方案--------------------
document.all.fmFrame.src=url + 参数;
------解决方案--------------------
window.iframes[0].document.getElementById( "TABLE_ID ")

------解决方案--------------------
document.all.iframe.src=url
------解决方案--------------------
form 的taget指向iframe就可以拉。