Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 3 of 3
  1. #1
    Junior Member
    Join Date
    Sep 2009
    Posts
    3
    Member #
    19995
    This is a problem that i have googled for hours and can't find an answer so i resort to asking on here because i found similar question on here.

    I have a page i use, It has an iframe on it but it is not regular iframe, The iframe has a resizing script that resizes the height of the iframe to the height of the page being viewed. Using this script it eliminates scrolling!

    This has all been working out great but then i realise for it to function properly in IE i need to add a doctype, When i add a doctype to it it functions properly in IE but it doesn't work in firefox. In firefox the frame doesnt resize and it is like 50px height.
    I have tried a bunch of different doctypes and they don't work.

    This is the problem page (with doctype - works properly only on IE):
    http://ww-chat.com/games.php

    This is the page without a doctype (Works properly only on FIREFOX - not IE):
    http://ww-chat.com/games-nodoctype.php


    This is the code that i use for the iframe:

    <iframe id="games" name="games" src="http://ww-chat.com/games/" frameborder=0 scrolling=no width="990" onload="if (window.parent && window.parent.autoIframe) {window.parent.autoIframe('games');}"></iframe>
    This is the script that it uses to resize the frame:
    http://ww-chat.com/iframeresize.js


    I have other iframes on my website which don't use the resize script and they work perfectly fine (with doctype!).

    Thanks,
    Worldwideebm

  2.  

  3. #2
    Junior Member
    Join Date
    Sep 2009
    Posts
    3
    Member #
    19995
    anyone??

  4. #3
    Junior Member
    Join Date
    Sep 2009
    Posts
    3
    Member #
    19995
    Problem Solved.

    Solution:
    I changed objToResize.height = innerDoc.body.scrollHeight + 10px;


    To:
    objToResize.height = (innerDoc.body.scrollHeight + 10)+"px";


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 05:07 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com