|
-
May 4th, 2007, 07:52 AM
#1
Thread Starter
Hyperactive Member
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
-
May 5th, 2007, 05:15 AM
#2
Frenzied Member
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.
-
May 7th, 2007, 04:16 AM
#3
Re: Multiple iFrames problem with Firefox
Where is your variable, aptly named 'variable', defined?
-
May 7th, 2007, 05:18 AM
#4
Thread Starter
Hyperactive Member
Re: Multiple iFrames problem with Firefox
 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
-
May 7th, 2007, 05:56 AM
#5
Re: Multiple iFrames problem with Firefox
 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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|