468,140 Members | 1,429 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

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

HTML Header Problem

Hi,

I built a website using the HMTL header:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

All the CSS layout stuff looks good.

I just found this neat javascript, Ferrant DHTML Studio Lite, that
creates a beautiful pop-up window. (www.ferant.com) However, this
javascript only work when the HTML header is set to:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

Changing to this HTML header will mess up my own CSS layout. I wonder
if this is a way to tell the browser to switch between 2 HTML header.

Thanks in advance!

Terry

Jul 23 '05 #1
8 2154
Terry wrote:

I built a website using the HMTL header:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

All the CSS layout stuff looks good.

I just found this neat javascript, Ferrant DHTML Studio Lite, that
creates a beautiful pop-up window. (www.ferant.com) However, this
javascript only work when the HTML header is set to:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

Changing to this HTML header will mess up my own CSS layout. I wonder
if this is a way to tell the browser to switch between 2 HTML header.


I'd say there's something wrong with your neat javascript if it works
only in quirks mode. And why are you using XHTML ?
Mick
Jul 23 '05 #2
Terry wrote:
Hi,

I built a website using the HMTL header:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

All the CSS layout stuff looks good.

I just found this neat javascript, Ferrant DHTML Studio Lite, that
creates a beautiful pop-up window. (www.ferant.com) However, this
javascript only work when the HTML header is set to:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
It does not even "work" then. Opening the sample page in Mozilla it
gives me code intended for "IE 6" which is incorrect for the UA I am
using. Its a result of a failed attempt by the author to attempt to
determine my browser by the User-Agent Header which is very unreliable
and that site is but one example of why it fails.

Changing to this HTML header will mess up my own CSS layout. I wonder
if this is a way to tell the browser to switch between 2 HTML header.
No. If you want that "not-so-neat broken" script on your site then you
will have to revert to quirks mode and guess what the page will look like.
Thanks in advance!


Welcome.
--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq
Jul 23 '05 #3
On Fri, 04 Feb 2005 17:38:33 -0500 Randy Webb wrote:
Terry wrote:
Hi, I built a website using the HMTL header: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"> All the CSS layout stuff looks good. I just found this neat javascript, Ferrant DHTML Studio Lite, that
creates a beautiful pop-up window. (www.ferant.com) However, this
javascript only work when the HTML header is set to: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
It does not even "work" then. Opening the sample page in Mozilla it
gives me code intended for "IE 6" which is incorrect for the UA I am
using. Its a result of a failed attempt by the author to attempt to
determine my browser by the User-Agent Header which is very unreliable
and that site is but one example of why it fails.
What browser and system?
All works fine for me in firefox.

Changing to this HTML header will mess up my own CSS layout. I wonder
if this is a way to tell the browser to switch between 2 HTML header. No. If you want that "not-so-neat broken" script on your site then you
will have to revert to quirks mode and guess what the page will look
like. Thanks in advance!

Welcome.
--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq

Jul 23 '05 #4
On Fri, 4 Feb 2005 16:17:25 -0600 Terry wrote:
Hi, I built a website using the HMTL header: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"> All the CSS layout stuff looks good. I just found this neat javascript, Ferrant DHTML Studio Lite, that
creates a beautiful pop-up window. (www.ferant.com) However, this
javascript only work when the HTML header is set to: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> Changing to this HTML header will mess up my own CSS layout. I wonder
if this is a way to tell the browser to switch between 2 HTML header. Thanks in advance! Terry

Interesting script.
Did you look at the source code for it? wow! what a monster.
But they made it simple so you can change the look and feel as desired quite
easily with the interface they include.
If I can incorporate that into my own monster, I might use the thing.

Jul 23 '05 #5
Richard wrote:
On Fri, 04 Feb 2005 17:38:33 -0500 Randy Webb wrote:

Terry wrote:
Hi,
I built a website using the HMTL header:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
All the CSS layout stuff looks good.
I just found this neat javascript, Ferrant DHTML Studio Lite, that
creates a beautiful pop-up window. (www.ferant.com) However, this
javascript only work when the HTML header is set to:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">


It does not even "work" then. Opening the sample page in Mozilla it
gives me code intended for "IE 6" which is incorrect for the UA I am
using. Its a result of a failed attempt by the author to attempt to
determine my browser by the User-Agent Header which is very unreliable
and that site is but one example of why it fails.

What browser and system?
All works fine for me in firefox.


Mozilla 1.7.1 on WinXP SP2 in IE6 Spoof Mode. Perhaps you should learn
how UA's actually work before you ask questions like that. If you had
bothered to look at the code in the page, and paid attention to the
remarks in the code, and viewed it in more than one browser, you would
not be asking this question.

And, what "works" for you is not a good indication of a "working
script". But since you asked, put Opera 7 in IE Spoof Mode, open that
page, then open a "dHTML popup" and move it around......

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq
Jul 23 '05 #6
Mick White <mw***********@rochester.rr.com> spoke thus:
I'd say there's something wrong with your neat javascript if it works
only in quirks mode. And why are you using XHTML ?


What's wrong with XHTML?

--
Christopher Benson-Manica | I *should* know what I'm talking about - if I
ataru(at)cyberspace.org | don't, I need to know. Flames welcome.
Jul 23 '05 #7
Christopher Benson-Manica wrote:
Mick White <mw***********@rochester.rr.com> spoke thus:

I'd say there's something wrong with your neat javascript if it works
only in quirks mode. And why are you using XHTML ?

What's wrong with XHTML?


99% of the time it is not necessary, are you feeding XML documents?
Mick
Jul 23 '05 #8
Christopher Benson-Manica wrote:

[snip]
What's wrong with XHTML?


At the moment, XHTML just isn't worth the effort. The only way IE will
understand it is if it's served as HTML, in which case the document
would be error corrected into plain 'ol HTML. So, why not just serve
HTML in the first place?

Look in the archives of ciwah or a.html. There's plenty of debate on
this topic.

Mike

--
Michael Winter
Replace ".invalid" with ".uk" to reply by e-mail.
Jul 23 '05 #9

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by db | last post: by
82 posts views Thread by Eric Lindsay | last post: by
2 posts views Thread by comp.lang.php | last post: by
12 posts views Thread by vietgurlqt | last post: by
3 posts views Thread by CrazyAtlantaGuy | last post: by
27 posts views Thread by didacticone | last post: by
1 post views Thread by gcdp | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.