日期:2014-05-17  浏览次数:20692 次

jsp如何解决在frameset问题?+++++ 三个贴子积分
我需要在frameset中最外层弹出一个层,当点击按钮后能获取页面的数据?
我在 http://blog.csdn.net/renminzdb/article/details/7480799 博客中实现了这一功能,但是在弹出框确定按钮后,无法获取页面的数据??求各位高手,有没有更好的方法......

我以前有两个帖子未接,有帮忙解决的我将另外两个帖子的分也给他!!!!!!!!!!
一、http://topic.csdn.net/u/20120720/15/4ac80d6e-6c56-46f3-a0bc-401666cd4dc8.html

二、http://topic.csdn.net/u/20120724/09/cd5b8737-ed3a-44a5-80dc-f1e06a702d67.html

------解决方案--------------------
<frameset cols="30,*" style="z-index:1"> 

<frame src="menuframe.html" id="frame1" style="z-index:1">
<frame src="mainframe.html" style="z-index:1">

</frameset>

//JS 代码
windows.frames["frame1"].document

//这个代码可以获取menuframe.html中的document对象,然后可以获取menuframe.html中的数据
windows.frames["frame1"].document.getElementById("***")

------解决方案--------------------
对,设个id即可