Results 1 to 7 of 7

Thread: Iframe SSI script II - STILL HAVE H-Scroll Bars!

  1. #1
    Join Date
    Apr 2006
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Exclamation Iframe SSI script II - STILL HAVE H-Scroll Bars!

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

    OK, this scripts does work pretty well, but there is just one small issue in Firefox 1.5. It doesn't seem to resize the frame large enough and places horizontal scroll bars on some pages. I find this especially strange since in <iframe> scrolling="no".

    See http://www.philosophiks.net/

    Click on Band Bio for example and you'll see what I mean. What's odd is that if you click a link inside the Band Bio iframe (a band member's name) it seems to work perfectly.

    Seems to be fine in Internet Explorer.

    Any suggestions would be greatly appreciated. This script is absolutely perfect for what I need, I just hope I can get this issue fixed.

  2. #2
    Join Date
    Apr 2006
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I fixed the problem by changing this:

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

    Code:
    var FFextraHeight=parseFloat(getFFVersion)>=0.1? 32 : 0 //extra height in px to add to iframe in FireFox 1.0+ browsers
    This leaves a decent size blank area at the bottom of every page in FF now, but atleast there are no scroll bars. I was also wondering what the second number (0) after the colon defines?

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

    That is the adjustment for all other browsers which presumably, means IE.
    - John
    ________________________

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

  4. #4
    Join Date
    Apr 2006
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    OK, thanks. I also noticed another difference with how FF and IE handle this script. When the page is refreshed in IE the iframe will retain the page you last loaded within it, while in FF the iframe will just reload to the default src page. Any ideas on how to correct this? I would rather it retain like in 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

    Quote Originally Posted by pickle965
    OK, thanks. I also noticed another difference with how FF and IE handle this script. When the page is refreshed in IE the iframe will retain the page you last loaded within it, while in FF the iframe will just reload to the default src page. Any ideas on how to correct this? I would rather it retain like in IE.
    I'm not seeing that behavior in FF on your page, though I do see it with the demo, did you fix it? If so how?
    - John
    ________________________

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

  6. #6
    Join Date
    Apr 2006
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    You know, I didn't even realize it was fixed. I was cleaning up some of the code last night and didn't run through the site again until I read your post, so I don't even know what I did that fixed it! If I can find an older version of the pages I'll try and compare the code to let you know.

  7. #7
    Join Date
    Aug 2006
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Hey, I'm having the same problem, I tried fixing it, but the only difference in the problem is..I have vertical scrollbars, please, if anyone can help me fix it, I'd appreciate it greatly.

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
  •