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 4 of 4
  1. #1
    New to the CF scene
    Join Date
    Dec 2002
    Location
    ma
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question how to make iframe with variable height?

    i stuck in this.
    have web application (can't touch) and new design of web page
    have to place inside table sell external .asp application .
    i tried iframes, but cant make height variable.
    the webapp changing height from 1 to 4-5 pages.
    on the bottom of design locate table with bottom bar... (cant touch too)
    does some body has simmilar problemm? and can somebody give me some solv on it..

  • #2
    New to the CF scene
    Join Date
    Dec 2002
    Location
    ma
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Thumbs up one of the ways

    thanks to all. i found the way:


    <SCRIPT ID=clientEventHandlersJS language=javascript>
    <!--

    function frm_onload(frmname)
    {
    frmname.frameElement.height = frmname.document.body.scrollHeight+20;
    }

    //-->
    </SCRIPT>
    </HEAD>
    <BODY>

    <A HREF="small.htm" TARGET=frm>small</A>
    <BR>
    <A HREF="big.htm" TARGET=frm>big</A>
    <BR>
    <IFRAME ID=frm NAME=frm WIDTH=100% LANGUAGE=javascript ONLOAD="return frm_onload(frm)">
    </IFRAME>

  • #3
    Regular Coder
    Join Date
    Jun 2002
    Location
    Beyond Lament
    Posts
    424
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I have something like that on my site - lets me know how far the "scroll size" will be...

    Although from the code you posted, I can't seem to figure out what that does.


    Error in IE6; access denied.
    Quíet Storm Designs ~ Art is not what you see, but what you make others see.
    · the Storms· || ·Ultraviolent Winter· || ·Was Einstein Wrong?· || ·It´s About Time!·

  • #4
    New to the CF scene
    Join Date
    Dec 2002
    Location
    ma
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    RE

    it works fine in IE 5+

    place the script:

    <<SCRIPT language=javascript>
    <!--
    function frm_onload(frmname)
    {
    frmname.frameElement.height = frmname.document.body.scrollHeight+20;
    }

    //-->
    </SCRIPT>

    in header or in external .js



    i have asp page loading under static page.

    instead of this:

    <A HREF="small.htm" TARGET=frm>small</A>
    <BR>
    <A HREF="big.htm" TARGET=frm>big</A>
    <BR>
    <IFRAME ID=frm NAME=frm WIDTH=100% LANGUAGE=javascript ONLOAD="return frm_onload(frm)">
    </IFRAME>


    i put this:

    <IFRAME ID=frm NAME=frm WIDTH=100% LANGUAGE=javascript ONLOAD="return frm_onload(frm)" SRC="mumu.asp">
    </IFRAME>



    but the problem now it working only in IE. i can't find any solv. for Nav...

    i'll send you my e-mail in private msg.


  •  

    Posting Permissions

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