View Full Version : Firefox/IE issues
swampthang
01-17-2006, 09:54 PM
ok please help! I posted in the wrong forum before so here it is again.
Im sure this isnt very good coding and you'll tell me my many many mistakes that make this page load up in firefox only and not IE6.
www.squashandspanna.com/pics.html
but I dont understand why this doesnt work!
mwinter
01-17-2006, 10:04 PM
I already told you how to solve the problem. It just takes a little effort on your part.
Mike
jscheuer1
01-17-2006, 10:18 PM
Here is your main problem:
<script type="text/javascript" src="data/gallery.js" />
it should be:
<script type="text/javascript" src="data/gallery.js">
</script>
Oh, and if that is a DD script, do not remove the credit!
Yes... it took me a long time to figure this one out. Firefox parses a self-closing script tag properly; however, it seems to be the only browser to do so, leaving the page blank in everything else.
swampthang
01-18-2006, 01:38 PM
Thanks for your help guys, regarding mwinters comments, I did not notice the issue about FF only accepting the self closing script tag in the links you gave me. so thats why I posted again as I amended as you said and changed a few things as per the w3c links and it still did not show up in IE.
Oh and to clarify, the javascript is not from Dynamic Drive! it is from another site that did not request that i include a credit.
Thanks again.:)
jscheuer1
01-18-2006, 09:46 PM
You still haven't fixed this:
<script type="text/javascript src="data/gallery.js"/>
at least not in your demo. As I said, it should be:
<script type="text/javascript" src="data/gallery.js"></script>
jscheuer1
01-18-2006, 10:14 PM
Oh, here is another major error:
<meta http-equiv="Content-Type" content="text/html; />
should be:
<meta http-equiv="Content-Type" content="text/html" />
With this and the change made in my previous post, I got a local demo working well in IE and FF.
Notes: You really don't need all those self closing tags. Until IE comes out with a more modern browser, the old style unclosed tags (for tags that don't need closing) and the old style separate close tags (for tags that need closing), should be used.
Until IE comes out with a more modern browser, the old style unclosed tags (for tags that don't need closing) and the old style separate close tags (for tags that need closing), should be used.So long as it renders them, that's fine, I'd say. There are just a couple (like <script/>) you need to be wary of. I think a lot of browsers don't support <script/> because it's technically a closed tag, and they still regard tags as being either singleton or closed, rather than the XML/XHTML approach of defining a "singleton" tag as being the same as an empty closed tag.
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.