PDA

View Full Version : Firefox not rendering frames??




tj2001
May 22, 2005, 12:04 AM
Hi all!

Trying to cross browser design right... and boy is it fun :)
Well t looks fine in Safari & Internet Explorer so far.
It was working in Firefox but no clue what I broke!

http://macmasta.homeip.net/ocalagrooming/www/
Here is the code of the index.php

<?
if (!isset($page)) {
$page = "home.php";
}
//phpinfo();
?>
<html>
<head>
<title>&middot;&middot;&middot; Groomed to Perfection &middot;&middot;&middot; Your #1 stop for perfect animal care &amp; grooming!</title>
<meta name="description" content="">
<meta name="keywords" content="">
<meta name="expires" content="never">
<meta name="language" content="english">
<meta name="charset" content="ISO-8859-1">
<meta name="distribution" content="Global">
<meta name="robots" content="all">
<meta name="author" content="Mac Dynamix - www.macdynamix.com - Copyright &copy; 2005">
<meta name="copyright" content="Copyright ©2005 -">
</head>
<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">

<frameset rows="190,*, 75" frameborders="no" border="0">
<frame src="top.php" name="top" scrolling="no" frameborder="0" noresize />
<frameset cols="148,*" frameborders="no" border="0">
<frame src="side.php" name="side" scrolling="no" frameborder="0" noresize />
<frameset rows="30,*" frameborders="no" border="0">
<frame src="page_greeting.php" name="greet" scrolling="no" frameborder="0" noresize />
<frame src="<? echo $page; ?>" name="main" scrolling="auto" frameborder="0" noresize />
</frameset>
</frameset>
<frame src="bottom.php" name="bottom" scrolling="no" frameborder="0" noresize />
</frameset>
<noframes>
<center><h1>Groomed to Perfection</h1><font size="+2">
Your browser doesn't support frames! ***(Or you have them turned off...)<br /><br />
Please upgrade your web browser or use an aternative:<br />
MS Interent Explorer - <a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=1e1550cb-5e5d-48f5-b02b-20b602228de6&DisplayLang=en" target="_blank">Get It Here</a><br />
Netscape Navigator - <a href="http://browser.netscape.com/ns8/" target="_blank">Get It Here</a><br />
Mozilla Firefox - <a href="http://www.mozilla.org/products/firefox/" target="_blank">Get It Here</a><br />
Apple Safari - <a href="http://www.apple.com/safari/download/" target="_blank">Get It Here</a><br />
</font></center>
</noframes>

</body>
</html>


If anyone can peak with Firefox and get the source and give me a hand I would be grateful!



mkrishnan
May 22, 2005, 12:14 AM
The results of validator on your site (http://validator.w3.org/check?uri=http%3A%2F%2Fmacmasta.homeip.net%2Focalagrooming%2Fwww%2F&charset=iso-8859-1+%28Western+Europe%29&ss=1&verbose=1) seem to mostly point to issues surrounding the way you defined your doctype...

tj2001
May 22, 2005, 12:36 AM
The results of validator on your site (http://validator.w3.org/check?uri=http%3A%2F%2Fmacmasta.homeip.net%2Focalagrooming%2Fwww%2F&charset=iso-8859-1+%28Western+Europe%29&ss=1&verbose=1) seem to mostly point to issues surrounding the way you defined your doctype...

Even after adding a <!DOCTYPE... it still doesn't render at all in Firefox. It was earlier and unfortunately it isn't now...

Anyone else with ideas?

tj2001
May 23, 2005, 02:09 PM
:( No help at all? :(

mkrishnan
May 23, 2005, 02:19 PM
:( No help at all? :(

When you added the doctype, did it validate? I would be surprised if you could get it to validate and not appear in FF correctly....

dejo
May 23, 2005, 02:57 PM
Even after adding a <!DOCTYPE... it still doesn't render at all in Firefox. It was earlier and unfortunately it isn't now...

Anyone else with ideas?

What DOCTYPE did you specify? It seems you are trying to create an XHTML document, based on a number of "/>"s in the file. But all the meta tags are missing the / needed in the tag ends.

For example, for XHTML

<meta name="description" content="">

needs to be

<meta name="description" content="" />

dejo
May 23, 2005, 03:12 PM
Also, you should not be using <body> and <frameset> tags in the same document. It's one or the other.

tj2001
May 23, 2005, 11:07 PM
Also, you should not be using <body> and <frameset> tags in the same document. It's one or the other.

Dejo,

Thank you very much!!! It was exactly the <body> tag that stopped it! I really appreciate you pointing this out! I was going crazy! Something so simple yet so aggravating and small. Thanks a lot!

dejo
May 23, 2005, 11:19 PM
Dejo,

Thank you very much!!! It was exactly the <body> tag that stopped it! I really appreciate you pointing this out! I was going crazy! Something so simple yet so aggravating and small. Thanks a lot!

You're quite welcome! It's a common mistake (i.e. I've made it too!) and shows that IE and Safari allow "lazier" HTML than Firefox. As aluded to before, decide which HTML/XHTML you are wanting to code to, include the correct DOCTYPE for it at the beginning of your document, and verify it using the W3C Validator. That helps you to create (but, of course, not guarantee) the most cross-browser-compliant pages.