Results 1 to 4 of 4

Thread: Iframe SSI script II odd behavior!

  1. #1
    Join Date
    Mar 2005
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Iframe SSI script II odd behavior!

    Script: Iframe SSI script II
    URL: http://www.dynamicdrive.com/dynamic.../iframessi2.htm

    Hi! I'm using the Iframe SSI script for dynamic resizing, and it works great, except for one small behavior that I can't figure out.

    I have a menu at the top of a page that loads pages into an iframe below... pretty straightforward. The pages load below as expected, but what's odd is that sometimes the page will jump. After clicking on a link to load content into the iframe, I'll get this huge white space to the top and bottom of the entire page... everything looks fine except for this white space above and below the entire page content...

    Has anyone else come across this? Any suggestions? I can't seem to wrap my brain around this one!!

    Thanks in advance,

    bikkuri

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    It seems the iframe script has trouble determining the height of the document. This could happen if the contained document contains something that throws off the script, such as a layered element. In these cases, there isn't a workaround, as DHTML has its limitations when it comes to document height retrieval.

  3. #3
    Join Date
    Mar 2005
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thank you for the quick reply!

    I'm going to take a look at the code for the loading pages and see what might be off in there, but out of curiousity, would embedded stylesheets trip up the script by any chance?

    Thanks again!

    - bikkuri

  4. #4
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    Only if the embedded stylesheet contains code that alters the containing page's height or an element inside it.

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
  •