470,599 Members | 1,494 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,599 developers. It's quick & easy.

<!DOCTYPE> & Javacript

Hi,

I am running into this problem with IE 6. The following two pages are
identical except that one has <!DOCTYPE ...> at the beginning of the page
while the other doesn't. The javascript on the page is for a page-by-page
news scroller. IE 6 can only display the one WITHOUT the <!DOCTYPE ...>

http://free.hostdepartment.com/j/jav...th_doctype.htm

http://free.hostdepartment.com/j/jav...ut_doctype.htm

I know IE6 switches to 2 different modes depending on the <!DOCTYPE ..>
header. But I can't figure out which part in the javascript isn't
compatible with the brower's standard mode.

It will be great if someone can take a look of the code and point out what
is wrong. Thanks in advance!

Terry
Jul 20 '05 #1
4 1285
Terry wrote:
Hi,

I am running into this problem with IE 6. The following two pages are
identical except that one has <!DOCTYPE ...> at the beginning of the page
while the other doesn't. The javascript on the page is for a page-by-page
news scroller. IE 6 can only display the one WITHOUT the <!DOCTYPE ...>

http://free.hostdepartment.com/j/jav...th_doctype.htm


URL:
http://validator.w3.org/check?uri=ht...th_doctype.htm
/>

watch for line wrap.

One should attempt to debug X/HTML code before tackling the javascript
code. That may or may not be your problem, but its a start.
--
Randy
Chance Favors The Prepared Mind

Jul 20 '05 #2
Terry wrote:
http://free.hostdepartment.com/j/jav...th_doctype.htm I know IE6 switches to 2 different modes depending on the <!DOCTYPE ..>
header. But I can't figure out which part in the javascript isn't
compatible with the brower's standard mode.


Possibly among other things - but in CSS units are required for non-zero
lengths. width: 34; isn't acceptable (although width: 34em; is). Its also
cursor: pointer, not cursor: hand.

--
David Dorward <http://dorward.me.uk/>
Jul 20 '05 #3
DU
Terry wrote:
Hi,

I am running into this problem with IE 6. The following two pages are
identical except that one has <!DOCTYPE ...> at the beginning of the page
while the other doesn't. The javascript on the page is for a page-by-page
news scroller. IE 6 can only display the one WITHOUT the <!DOCTYPE ...>

http://free.hostdepartment.com/j/jav...th_doctype.htm

http://free.hostdepartment.com/j/jav...ut_doctype.htm

I know IE6 switches to 2 different modes depending on the <!DOCTYPE ..>
header. But I can't figure out which part in the javascript isn't
compatible with the brower's standard mode.

It will be great if someone can take a look of the code and point out what
is wrong. Thanks in advance!

Terry

Everything was explained many months ago in this file:

http://msdn.microsoft.com/library/de...hancements.asp

The W3C CSS1 box model is supported the way it should be when the
document triggers standards compliant rendering mode.

DU
Jul 20 '05 #4
Terry <No****@NoSpam.con> wrote in message news:<MP************************@news.tc.umn.edu>. ..
Hi,

I am running into this problem with IE 6. The following two pages are
identical except that one has <!DOCTYPE ...> at the beginning of the page
while the other doesn't. The javascript on the page is for a page-by-page
news scroller. IE 6 can only display the one WITHOUT the <!DOCTYPE ...>

http://free.hostdepartment.com/j/jav...th_doctype.htm

http://free.hostdepartment.com/j/jav...ut_doctype.htm

I know IE6 switches to 2 different modes depending on the <!DOCTYPE ..>
header. But I can't figure out which part in the javascript isn't
compatible with the brower's standard mode.

It will be great if someone can take a look of the code and point out what
is wrong. Thanks in advance!

Terry


It would appear that XHTML 1.0 transitional is not transitional
enough. I haven't got much time - work in half an hour but enclosing
your script in <!-- //--> and adding \ to your </div>'s = <\/div> got
it working but everything's squashed into top-left corner!
Jul 20 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by El Diablo | last post: by
reply views Thread by Steven T. Hatton | last post: by
2 posts views Thread by David W. Deley | last post: by
reply views Thread by Sam Samnah | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.