Use of doctype kills some JSscripts

R

rfr

When I add a transitional doctype to the weather page on my community
website, I loose certain Js scripts, but not all of them.

This puzzles me.

The main menu is powered by a js script and seems to function even with eh
doctype.

But, the floating menu doesn't function once I put a transitional doctype of
the page. The js script that handles the floating top of page icon on the
right side is problematic.

I have created version of the weather page with new names so that you can
access them w/o interfering with my visitor counts.

The funtioning page without doctype and INTERNAL JS is here and it works:
http://www.wgtn.net/weather/weather_without_doctype.htm

The non-funtioning page with doctype and INTERNAL JS is here:
http://www.wgtn.net/weather/weather_with_doctype.htm



I thought, perhaps that making the js script EXTERNAL would solve the
problem.

But this does not work either. Oh, dang.



The funtioning page without doctype and EXTERNAL JS is here:
http://www.wgtn.net/weather/weather_without_doctype_externaljs.htm

The non-funtioning page with doctype and EXTERNAL JS is here:
http://www.wgtn.net/weather/weather_with_doctype_externaljs.htm



I dont want to give up my floating menus.

I would like to be able to use a doctype so that my pages validate. This
helps me feel sure that they are cross-browser as much as I can do.

Has anyone else run up against this conflict with JS scripts and use of
doctype and have a solution or workaround?
 
T

Tom Miller

rfr said:
When I add a transitional doctype to the weather page on my community
website, I loose certain Js scripts, but not all of them.

I am not even close to a javascript guru but I do know that comp.lang.javascript is fairly active. Perhaps they have a clue.

Tom
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

DocType 1
Insert Index into a Table 1
When I insert a doctype my home page loses its mind 1
DOCTYPE 2
doctype choice? 12
script error 0
Why so many blank lines? 2
doctype help 13

Top