Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Nov 2008
    Posts
    16
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Internet Explorer Problem with IE Only, all browsers OK except IE.

    Hi, I am displaying a frame inside a table:

    Code:
    <table style="height:100%; width:100%;"><tr><td>
    <iframe frameborder="0" width="100%" height="100%" src="http://www.asite.com/directory/file.php?a=<?php echo $n; ?>&code=codehere">
    </td></tr></table>

    With PHP I get the value of "n" from the url that has about 15.000+ different values

    Code:
    <?php $n=$_GET['n'] ?>
    My problem is that in IE the scrollbar shows up twice, seems like the table size does not adapt to the frame size on IE.
    On all other browsers, Firefox, Opera, Chrome, Safari, etc, the table adapts to the size of the frame and the scrollbar does not show up for the frame, the actual page that contains the frame gets the height of the frame through the table. With Internet Explorer it does not happen.

    I cannot set a height for the table different than "100%" since all files I need to display inside the frame have different heights.

    Could someone provide a solution please?

  • #2
    Regular Coder
    Join Date
    Aug 2006
    Location
    Cardiff, UK
    Posts
    141
    Thanks
    15
    Thanked 2 Times in 2 Posts
    First thing to do is to set the height of the cell to 100% as well as the parent table. If that doesn't work, you'll need to put IE6 into quirks mode. Easiest way to do it is to put an XML prolog on the first line (<?xml version="1.0" encoding="UTF-8" ?>), which won't affect IE7 or more modern browsers.

    Chances are this will have a knock on effect on your layout - you'll be stuck with the IE5.5 box model, so you'll need to set up a separate CSS file and use conditional comments to target IE6 and below to sort out any problems.
    If anyone asks my boss, this counts as work, okay?

  • #3
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,852
    Thanks
    160
    Thanked 2,223 Times in 2,210 Posts
    Blog Entries
    1
    Can we have a link to your page?

    PS: I like your tags
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)


  •  

    Tags for this Thread

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •