Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    rui
    rui is offline
    New to the CF scene
    Join Date
    Apr 2005
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    jsp inside iframe don't resize main window

    Hi all, I have a problem with Iframes resize and the parent window. I'm developing an Intranet using a template and jsp's.
    This is my problem:
    - I have a html page(the template page) that contains a frameset:

    <FRAMESET ROWS="*" COLS="*" FRAMEBORDER="NO" FRAMESPACING="2" BORDER="0" scrolling="yes">
    <FRAME NAME="top" SRC="top.html" MARGINWIDTH="0" MARGINHEIGHT="0" FRAMEBORDER="NO">
    </FRAMESET>

    Inside the top.html file, I have an Iframe that contains all the layout for the menus(top and left side menus) of the intranet:

    <IFRAME id="EXPLORERLEFTTOP" NAME="EXPLORERLEFTTOP" SRC="/menus/layout.jsp" width="975" frameBorder='0' language=javascript onload="return frm_onload(EXPLORERLEFTTOP);" scrolling='no'></IFRAME>

    and inside the layout.jsp file, i have another iframe that contains the content of the menu's options of the intranet. Like this:

    <div id="Content">
    </div>
    <script>
    function calcHeight(frmname)
    {
    var the_height=frmname.document.body.scrollHeight + (frmname.document.body.offsetHeight - frmname.document.body.clientHeight);
    frmname.frameElement.height=the_height;
    }

    url='whatever.jsp';
    document.getElementById('Content').innerHTML="<iframe id='content_frame' name='content_frame' src='"+url+"' width='745' frameBorder='0' language=javascript onLoad='calcHeight(content_frame);'></iframe>";
    </script>

    The problem is inside this last iframe (the 'content_frame') I called a jsp 'whatever.jsp' that have a form and when I submit this form or click a link to another jsp that is bigger than then height of the whatever.jsp, the height of the iframe changes (because i use onLoad='calcHeight(content_frame);'), but the IE parent window doesn't show all the height of the iframe. the window scrollbars only scroll until the height of the whatever.jsp when it was first loaded on the iframe 'content_frame'.

    sorry for bad english and thanks for the help.

  • #2
    rui
    rui is offline
    New to the CF scene
    Join Date
    Apr 2005
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Does anybody can help me?

  • #3
    rui
    rui is offline
    New to the CF scene
    Join Date
    Apr 2005
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I managed to solve this question.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •