Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: Firefox problems with Iframe SSI script II

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

    Question Firefox problems with Iframe SSI script II

    I implemented this script and i get it to work 100% in IE, however Firefox chokes and shows me an ~100px high frame, although the content is MUCH longer.

    http://lateamhandball.com/dev/test.php

    I'm using :
    Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.8) Gecko/20050511 Firefox/1.0.4

    any help woud be greatly appreciated!!
    thanks

  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

    Just a thought, try changing this:

    Code:
    if (currentfr.contentDocument && currentfr.contentDocument.body.offsetHeight) //ns6 syntax
    currentfr.height = currentfr.contentDocument.body.offsetHeight+FFextraHeight;
    to this:
    Code:
    if (currentfr.contentDocument && currentfr.contentDocument.body.offsetHeight) //ns6 syntax
    currentfr.height = currentfr.contentDocument.body.offsetHeight+FFextraHeight+"px";
    Untested, worth a shot.

    And if that doesn't get it try increasing this number:

    Code:
    var FFextraHeight=parseFloat(getFFVersion)>=0.1? 16 : 0 //extra height in px to add to iframe in FireFox 1.0+ browsers
    Last edited by jscheuer1; 05-19-2005 at 02:58 AM.
    - John
    ________________________

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

  3. #3
    Join Date
    May 2005
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    thanks, but that didn't work.
    When changing 16 to 160 for example, the page did increase. But that would defeat the purpose of having it autosize.

    Code:
    var FFextraHeight=parseFloat(getFFVersion)>=0.1? 16 : 0 //extra height in px to add to iframe in FireFox 1.0+ browsers

  4. #4
    Join Date
    May 2005
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    that's interesting...every time (with Netscape 7 or Firefox 1.04) i click on a link inside the iframe, the outter frame grows by a certain amount
    .Im assuming by the extra pixels for the firefox offset.

    So if someone clicks around for 10min, i'll have a 100000px long page

    doesn't happen with IE

  5. #5
    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

    Very strange, it is not a FF specific problem then. It could be because it is php. Did you try a demo of the page as regular html? The demo on DD here works fine but, it is html.
    Last edited by jscheuer1; 05-19-2005 at 03:50 AM.
    - John
    ________________________

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

  6. #6
    Join Date
    May 2005
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    yeah, tried that as well.
    http://lateamhandball.com/dev/test.html

    even removed the doctype header
    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">

  7. #7
    Join Date
    May 2005
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    does anyone else have any ideas?
    i really don't understand why it's behaving that way..and i can't find any other solution

  8. #8
    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

    The tried and true method is to start over with a demo install on pure html, make sure that is working properly. Then add your modifications/customizations one at a time until it breaks.
    - John
    ________________________

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

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

    Default

    I've been using this same script on my website:

    http://www.netmusician.org/links.php

    The iFrames appear on all pages when you click on high bandwidth after the initial redirect. This problem is most visible in the Links section, however, which is why my URL points to this section.

    The problem I have sounds like the exact opposite of what is being reported here, namely I get a whole bunch of extra space at the bottom of the window. I don't get this in any other browser, even lowly IE 6.

    Strange... if you have any ideas of things I can try, I'm all ears, but I kind of suspect that there is nothing that can be done. It seems that Mox/Firefox's iFrame support is a little buggy.
    Last edited by besson3c; 05-29-2005 at 07:10 PM.

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

    Default

    I've looked at some of the problems reported by Firefox users, and a lot of them occurs when the iframe contains a dynamic page (ie: php). It seems to throw dynamic resizing off in Firefox. I'm not sure there's a solution to this, at least I haven't had any success tinkering with the script.

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
  •