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
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.
Re: Multiple iFrames problem with Firefox
Where is your variable, aptly named 'variable', defined?
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!
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.