Results 1 to 3 of 3

Thread: Problem with Iframe.

  1. #1
    Join Date
    Jul 2007
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Problem with Iframe.

    I have normal iframe like this;
    PHP Code:
    <iframe src="next.php" widht="something" height="something" name="iframe" scrolling="no" frameborder="0">
    </
    iframe
    How can i do that iframe shows whole
    "src=" page without "height" or "widht" added in iframe? How can i do that?

  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

    Since iframe is being deprecated anyway, why not go quirks? Forcing quirks mode with no DOCTYPE on the page, you should be able to do this:

    HTML Code:
    <iframe src="whatever.htm" width="100%" height="100%" frameborder="0" scrolling="auto">
    <a href="whatever.htm">Whatever</a>
    </iframe>
    That should at least get you part of the way. Removing scrollbars from the top page with:

    Code:
    html, body {
    overflow:hidden;
    }
    or some such thing might be nice too.

    You should be left with an iframe that takes up the entire space of the window with scrollbars (if any) that scroll to various places on the external page.

    Untested
    Last edited by jscheuer1; 11-10-2007 at 04:50 PM. Reason: fix typo
    - John
    ________________________

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

  3. #3
    Join Date
    Jul 2007
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thank you very 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
  •