Results 1 to 3 of 3

Thread: Iframe SSI Script II -- Can't view in FF

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

    Default Iframe SSI Script II -- Can't view in FF

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

    The problem is that the iframe shows up in IE, but not in firefox. It says it should though, on the script page. Why won't it show?

    Here is the link to the page I am using it on:
    http://schmob.50webs.com/index.html

    Please view in IE first, then firefox. The iframe the script is on is the nav box to the left. Can anyone tell me why the iframe won't show up in firefox and how I can fix it? 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

    It is hard to thoroughly test an installation like this because the support file (http://schmob.50webs.com/menuiframe.html) is on the server and must be used by the iframe but when testing the top page locally, that violates the security of the domain. Also, I really don't see any use of this script on your pages that an ordinary iframe, set to the proper attributes and dimensions couldn't replace. However, the main problem is that the iframe must have an id, not a name. Where you have:

    <IFRAME name="inlineframe"

    it should be:

    <IFRAME id="inlineframe"

    That may be all that it takes, except that you also need to use these original lines:

    Code:
    var getFFVersion=navigator.userAgent.substring(navigator.userAgent.indexOf("Firefox")).split("/")[1]
    var FFextraHeight=parseFloat(getFFVersion)>=0.1? 16 : 0 //extra height in px to add to iframe in FireFox 1.0+ browsers
    instead of:

    Code:
    var getFFVersion=navigator.userAgent.substring(navigator.userAgent.indexOf("Firefox")).split("/")[1]
    var FFextraHeight=parseFloat(getFFVersion)>=0.1? 16 : 500 //extra height in px to add to iframe in FireFox 1.0+ browsers
    You should also revert to the original script anywhere else that you may have made modifications other than here:

    Code:
    //Input the IDs of the IFRAMES you wish to dynamically resize to match its content height:
    //Separate each ID with a comma. Examples: ["myframe1", "myframe2"] or ["myframe"] or [] for none:
    var iframeids=["inlineframe"]
    
    //Should script hide iframe from browsers that don't support this script (non IE5+/NS6+ browsers. Recommended):
    var iframehide="no"
    Last edited by jscheuer1; 12-22-2005 at 07:34 AM.
    - John
    ________________________

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

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

    Default

    Thank you thank you thank you! It worked the first time! (Finally, after 4 days of trying to figure it out) You've helped so much!

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
  •