Results 1 to 4 of 4

Thread: Dynamic iFrame height won't work in Firefox

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

    Default Dynamic iFrame height won't work in Firefox

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

    I'm using the latest version of this script with the firefox fix in it but can't get it to display correctly.

    One of the page I load in the iframe is the result of a SQL query. In order for this page to display correctly, I've found that I needed to remove the
    height:100% part of the style in order to display the entire result set (both in IE or Firefox). The iframe string now reads <iframe id="myframe" src="phonebook.asp" scrolling="no" frameborder="0" marginwidth="0" marginheight="0" vspace="0" hspace="0" style="overflow:visible; width:900px; display:none"></iframe>

    Because the height portion is missing, though, my main page no longer displays correctly in Firefox; the iframe barely shows the first line of that page. All works fine in IE. This page uses CSS layers... could that be the problem?

    I can forward screenshots if this isn't clear enough.

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

    Default

    Hey, have you found a solution to it? I'm having the same problem. Let's collaborate.

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

    Default

    Hmmm it's highly likely the CSS layers are the cause of the problem, since layers may be interpreted out of context with the rest of the page, causing this script to not be able to add in the layers' height when determining how tall the iframe should be.

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

    Default

    I just tried the script in pages with no other styles, and it does nothing to the iframe in Firefox or IE. Without height:100% in the style it displays the iframe as only ~100px (for a massive page 10 times that length). With height:100% it displays the iframe as 100% of the browser window (in either browser). What gives? The script at its most uncustomised form doesn't even work for me.

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
  •