Results 1 to 5 of 5

Thread: Multiple iFrames problem with Firefox

  1. #1

    Thread Starter
    Hyperactive Member thebloke's Avatar
    Join Date
    May 2003
    Posts
    358

    Multiple iFrames problem with Firefox

    Hopefully a quick one.

    This:

    HTML Code:
    <?xml version="1.0" encoding="utf-8"?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head>
    <title>ChoiceQuote Insurance</title>
    </head>
    <body>
    
    <div style="width:100%;text-align:center;height:inherit;border:none;">
        <iframe id="top" frameborder="0" src="banner.htm" style="border:none;width:800px;height:120px;"/>
        <iframe id="main" frameborder="0" src="<%=variable%>" style="border:none;width:800px;height:420px;"/>
        <iframe id="bottom" frameborder="0" src="footer.htm" style="border:none;width:800px;height:50px;" />
    </div>
      <noframes>
            <div>This page requires frames to be enabled</div>
      </noframes>
    
    </body>
    </html>
    Is fine and dandy in IE6 however in Firefox I just see the first iframe then nothing else.

    (ps this is only a problem in an .asp page, not .htm)

    Any ideas?

    Thanks
    Last edited by thebloke; May 4th, 2007 at 08:32 AM.
    The Bloke
    www.blokeinthekitchen.com
    making cooking cool for blokes

  2. #2
    Frenzied Member vbNeo's Avatar
    Join Date
    May 2002
    Location
    Jutland, Denmark
    Posts
    1,994

    Re: Multiple iFrames problem with Firefox

    Try using a closing tag to close the iframes... <iframe></iframe> - it might be that firefox assumes an iframe has content, and therefore doesn't consider the tag closed.
    "Lies, sanctions, and cruise missiles have never created a free and just society. Only everyday people can do that."
    - Zack de la Rocha


    Hear me roar.

  3. #3
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: Multiple iFrames problem with Firefox

    Where is your variable, aptly named 'variable', defined?

  4. #4

    Thread Starter
    Hyperactive Member thebloke's Avatar
    Join Date
    May 2003
    Posts
    358

    Resolved Re: Multiple iFrames problem with Firefox

    Quote Originally Posted by vbNeo
    Try using a closing tag to close the iframes... <iframe></iframe> - it might be that firefox assumes an iframe has content, and therefore doesn't consider the tag closed.
    That's done the trick, thanks!
    The Bloke
    www.blokeinthekitchen.com
    making cooking cool for blokes

  5. #5
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: Multiple iFrames problem with Firefox

    Quote Originally Posted by vbNeo
    Try using a closing tag to close the iframes... <iframe></iframe> - it might be that firefox assumes an iframe has content, and therefore doesn't consider the tag closed.
    I think it's more that the short-hand closing notation isn't supported in HTML.


    Yeah yeah... it's "XHTML" not HTML. But I bet it's sent as text/html, which makes /> meaningless.
    Oddly, /> does in fact have a technical meaning in HTML (although no-one cares about it, with good reason), but not in HTML masquerading as XHTML. If sent using an XML MIME type, then the code above would work properly.

Posting Permissions

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



Click Here to Expand Forum to Full Width