473,387 Members | 1,864 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

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 2337
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: mike | last post by:
ok here's the problem: I have a page that displays a form for user to select individual fields and to specify their own criteria which is used to query a database and then create an excel...
3
by: db | last post by:
Hello all, I hope this is the correct newsgroup for this question. Does anybody know how I can write a html-header with python(cgi)? The problem is, I have a few html templates in which I have...
82
by: Eric Lindsay | last post by:
I have been trying to get a better understanding of simple HTML, but I am finding conflicting information is very common. Not only that, even in what seemed elementary and without any possibility...
2
by: comp.lang.php | last post by:
class ReportGenerator { function ReportGenerator() {} /** * Generate the HTTP headers necessary for this file type. Can be called statically *
6
by: Morgan Cheng | last post by:
I know that HttpWebRequest.GetResponse() generates a HttpWebResonse. The response has one ContentType property. But the property is just decided by http response header. It is possible that the...
12
by: vietgurlqt | last post by:
I don't what is wrong my site but some of my members cant view it on firefox. I been browsing the net for answer but i havent find the solution. Some said add <!DOCTYPE HTML PUBLIC "-//W3C//DTD...
3
by: CrazyAtlantaGuy | last post by:
I am working on creating an XSLT that transforms Html into an XML format that can be imported into Framemaker. The challenge, it turns out, is correctly transforming the flat html header tags...
5
by: smittie31 | last post by:
I am having a problem with a border around me html page. The border does not flow thru the whole html page, it cuts off halfway. --> See http://keithborom.com/marlon-sanders CSS STYLESHEET ...
10
by: happyse27 | last post by:
Hi All, I got this apache errors(see section A1 and A2 below) when I used a html(see section b below) to activate acctman.pl(see section c below). Section D below is part of the configuration...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.