把form的target设为top窗口就行了.

解决方案 »

  1.   

    高手指教啊
    除了用frame,还用有什么方法吗?
      

  2.   

    感觉楼主有些言重了
    对于经常用frameset框架的来说
    并不觉得很难
    就像zhaoxiaoyang(梅雪香@深圳)所说:
    <form action="..." method="post" target="_top">就行了
      

  3.   

    问题都不是单一的,
    另一个问题回答好了,我另开贴现在不单是要子页面的元素要提交,连父页面元素也要提交了
    怎么办?就是说现在a.jsp和iframe中的(b.jsp,c.jsp)中的元素都要一起提交到d.jsp文件中
    而且要d.jsp是全屏显示的,不是显示在iframe内
      

  4.   

    可以换一种方法
    在你点击radio的时候,先把a.jsp要提交的内容传到b.jsp页面
    然后在b.jsp页面提交的时候连之前a.jsp提交到b.jsp的内容一起提交到d.jsp上面至于全屏,可以在提交的时候用javascript把a.jsp关闭,然后用window.open把新窗口弹出来
      

  5.   

    b.jsp和c.jsp和提交之前,取得父页面的一些值,写在它们自己(b.jsp或c.jsp)的隐藏域里,然后再提交.比如,
    --------b.jsp----------
    <form ... onsubmit="onsubmit1()" target="_top">
    <input type=hidden name=aa/>
    <input type=hidden name=bb/>function onsubmit1()
    {
        document.getElementByName("aa")[0].value = parent.document.getElementByName[0].value;
        document.getElementByName("bb")[0].value = parent.document.getElementByName[0].value;
    }---------a.jsp------------
    <input type=text name=aa/>
    <input type=text name=bb/>
    <iframe src=b.js></iframe>
      

  6.   

    至于全屏,可以在提交的时候用javascript把a.jsp关闭,然后用window.open把新窗口弹出来
    -------------------------
    哦,楼主要全屏,抱歉,没看清,那完全可以这样:<form ... action='xxx.jsp' target="aa" onsubmit="onsubmit1();window.open('about:blank','aa');"
    -------------xxx.jsp--------
    <body onload="window.opener.top.close()">