Results 1 to 3 of 3

Thread: Iframe SSI script II will not resize...

  1. #1
    Join Date
    Nov 2006
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Iframe SSI script II will not resize...

    1) Script Title:
    Iframe SSI script II
    2) Script URL (on DD):
    http://www.dynamicdrive.com/dynamici...iframessi2.htm
    3) Describe problem:
    I am trying without any success to get this script to work on a page that I am making. Whenever I set it up on a page though (in Firefox):
    Code:
    currentfr.contentDocument.body.offsetHeight
    will always evaluate to 0, so the iframe will not get resized. Likewise, when I try it in IE it will not expand either. More so, the result (in Firefox) is a small, default height iframe with scroll bars (horizontal and vertical) to see the full page, which is another local HTML page containing divs and text.

    Is there anything that could be causing this?
    - other javascript?
    - divs? I tried set all divs to {display: block}
    - CSS may do something evil??

    Any help will be greatly appreciated.

    Regards.

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Are you using absolute positioning or floats on the page(s) loaded into the iframe?
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Nov 2006
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    yeah... i finally figured that out just before your post. Since I was using absolute positioning it had nothing to resize. Onward I go with the magical world of float...

    btw, if anyone else out there doesn't understand float, here's a really good page for explaining float that I found: http://www.barelyfitz.com/screencast...s/positioning/

Bookmarks

Posting Permissions

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