Certain website will load on other browsers but not the new Firefox
I run a website for one of our school programs. It has always loaded fine in Firefox and IE, but once I (and others) updated Firefox to Firefox 45, now the center screen of the website remains blank. I noticed this problem also occurs in Google Chrome, but not IE or the previous version of Firefox. The website is www.dsjband.com and I would appreciate any help on this matter!
Tất cả các câu trả lời (8)
Looks like a problem with more than two subsequent hyphens in a comment tag that causes that missing content to be placed in the comment tags.
You should avoid such a string of hyphens.
See:
<!----- <img src="about.gif" onclick="SwitchMenu('sub15')"><br>
<!-- <img src="about.gif" onclick="SwitchMenu('sub15')"><br>
Thanks, I corrected that and the website still doesn't work on the newest Firefox or Chrome, yet it works on other browsers and the older Firefox. I cannot figure out why!
What's up with having two different Doctype statements?
< !DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" >
< !DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml2/DTD/xhtml1-strict.dtd" > < html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" >
Work fine for me at the moment in Firefox 4.0
Reload web page(s) and bypass the cache.
- Press and hold Shift and left-click the Reload button.
- Press "Ctrl + F5" or press "Ctrl + Shift + R" (Windows,Linux)
- Press "Cmd + Shift + R" (MAC)
It still doesn't work in Firefox 4 - the menu and top shows up but the page content is blank in the center, and when you click on any of the menu links, the page contest remains blank even though the page changes.
What is this code supposed to do ? You open a comment, b but do not close it.
<!-- <img src="about.gif" onclick="SwitchMenu('sub15')"><br>
You also have two head sections and some body code in between.
</head> <body> <div id="framecontentLeft"> <div class="innertube"> <head> <style type="text/css"> (.....) </style> <script type="text/javascript"> (.....) </script> </head> <body>
There are two head sections only when you look at the source code in the browser. In actuality, the menu and the page body are two different php files and they are put on the page via css and php include codes, so both show up in the source code even though they are saved as two different php files.
Not sure about the comment I didn't close, I will check on that, though that wouldn't be the reason the entire body of the website doesn't show up in FF4 or Chrome.
If the server sends code that isn't following standards like in this case with two head and two body sections then it is unpredictable how browsers respond.
If you can't make that PHP code work properly then it is better to ask advice on the mozillaZine Web Development/Standards Evangelism forum.
The helpers at that forum are more knowledgeable about web development issues.
You need to register at the mozillaZine forum site in order to post at that forum.