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 7 of 7
  1. #1
    New Coder
    Join Date
    Dec 2005
    Location
    Dallas, TX
    Posts
    45
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Disappearing <iframe> in IE

    Alright, me with a problem in IE again... *grumbles something about a standards non-compliant piece of ***** This time, it's an HTML/CSS/frames problem. In my web app, I'm using iframes to show different things all at once to both minimize bandwidth usage and to keep the user as up-to-date as possible. My layout looks something like this:

    Code:
    +----------------------------+
    |       Toolbar Frame        |
    +----------------------------+
    |                            |
    |                            |
    |      Content Frame         |
    |                            |
    |                            |
    +----------------------------+
    |                   |  User  |
    |     Chat View     |  List  |
    +-------------------|        |
    |     "Say" Frame   |  Frame |
    +----------------------------+
    Well, it all shows up just fine in FF, of course, but in IE, the user list frame just... Disappears. Here's a link to an HTML example:

    http://www.trinityservers.com/test_thing.html

    As you'll see, the frame shows up just fine in Firefox, but once you switch over to IE, it's just... Gone.

    Help, please?
    Last edited by Osiris; 12-17-2005 at 08:58 AM.
    Owner - Osiris Incorporated

    PHP and MySQL pro, and always willing to help.

  • #2
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    Its there but IE is having a problem with the percentage height. Add this in between your head tags.
    Code:
    <style type="text/css">
    html, body {
    margin:0;
    padding:0;
    height:100%;
    }
    </style>
    The iframe now shows up but makes it huge, but now you have something to work with.
    Last edited by _Aerospace_Eng_; 12-17-2005 at 09:08 AM.

  • #3
    New Coder
    Join Date
    Dec 2005
    Location
    Dallas, TX
    Posts
    45
    Thanks
    0
    Thanked 0 Times in 0 Posts
    In the head tags of which document, though? Keep in mind that the page holds several documents at once. :P
    Owner - Osiris Incorporated

    PHP and MySQL pro, and always willing to help.

  • #4
    New Coder
    Join Date
    Dec 2005
    Location
    Dallas, TX
    Posts
    45
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Ok. I tried, and while it worked for the example, it didn't when I tried to put it in the actual site, it didn't work at all. =( Any other ideas?
    Owner - Osiris Incorporated

    PHP and MySQL pro, and always willing to help.

  • #5
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    In the head tags for the main document not the iframe pages. Personally I think you are abusing iframes, you might as well use a frameset.

  • #6
    New Coder
    Join Date
    Dec 2005
    Location
    Dallas, TX
    Posts
    45
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I can't use a frameset, because I'd just have to put the frameset in an iframe... As you'll see here in a second. I have another example with the design set in:

    http://www.trinityservers.com/test_thing2.html

    Seeing that, now do you get what I mean?
    Owner - Osiris Incorporated

    PHP and MySQL pro, and always willing to help.

  • #7
    New Coder
    Join Date
    Dec 2005
    Location
    Dallas, TX
    Posts
    45
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Still in need of some help... I can't seem to figure out at all how to fix it. Nothing I've tried has done any good whatsoever. There's got to be someone who can help me out here... Please? I'll give you a cookie. =P
    Owner - Osiris Incorporated

    PHP and MySQL pro, and always willing to help.


  •  

    Posting Permissions

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