Welcome to WebmasterWorld Guest from 184.72.177.182

Forum Moderators: incrediBILL

Message Too Old, No Replies

Javascript, Netscape, and xhtml

     
8:30 am on Nov 4, 2003 (gmt 0)

New User

10+ Year Member

joined:June 17, 2003
posts:19
votes: 0


Does anybody know why a javascript link menu will not appear in Netscape if I have a strict doc type? Works ok in IE, but not Netscape. Once I remove the doc type, it works in Netscape.
10:21 am on Nov 4, 2003 (gmt 0)

Junior Member

10+ Year Member

joined:July 23, 2003
posts:181
votes: 0


Quite strange as Javascript was created by Netscape.

I take it that this is the Doctype you use?

<!doctype html public "-//w3c//dtd html 4.01 strict//en">

HTML 4.01 Strict describes the structural portions of HTML 4.01 and does not provide any frame-related markup.

Maybe this could be of help? Or maybe not?

Terry

3:14 pm on Nov 4, 2003 (gmt 0)

New User

10+ Year Member

joined:June 17, 2003
posts:19
votes: 0


yes, that is the doc type. This is an external js menu file that appears on every page.
1:07 am on Nov 5, 2003 (gmt 0)

Senior Member

WebmasterWorld Senior Member tedster is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:May 26, 2000
posts:37301
votes: 0


Sounds like it's time to go into details:

1. Have you validated the page forn the strict DTD?
2. Which version of Netscape is giving trouble

3:31 pm on Nov 5, 2003 (gmt 0)

New User

10+ Year Member

joined:June 17, 2003
posts:19
votes: 0


1. Yes, the page validates in strict

2. The javascript menu is invisible in Netscape 7.1 and Mozilla Firebird 0.7 if I have the strict doc type stated at the top.

Everything works in IE.

10:44 pm on Nov 5, 2003 (gmt 0)

Junior Member

10+ Year Member

joined:Mar 4, 2002
posts:60
votes: 0


Shot in the dark here. Never attempted the HTML 4.0 Strict but I had JavaScript promblems when moving to XHTML 1.0 Transitional.

XHTML would only accept event handlers in all lower-case; onmouseover but not onMouseOver. I don't know if case sensitivity is part of the HTML 4.0 Strict standard or not.

10:50 pm on Nov 5, 2003 (gmt 0)

New User

10+ Year Member

joined:June 17, 2003
posts:19
votes: 0


mikegram, you may be on to something. I think I have upper and lower case handlers. Let me rewrite the Javascript and see what happens. That might be it! I am having this problem with XHTML 1.0 Strict. Back to you soon.