472,779 Members | 2,682 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,779 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 2308
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: Rina0 | last post by:
Cybersecurity engineering is a specialized field that focuses on the design, development, and implementation of systems, processes, and technologies that protect against cyber threats and...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 2 August 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: erikbower65 | last post by:
Using CodiumAI's pr-agent is simple and powerful. Follow these steps: 1. Install CodiumAI CLI: Ensure Node.js is installed, then run 'npm install -g codiumai' in the terminal. 2. Connect to...
0
linyimin
by: linyimin | last post by:
Spring Startup Analyzer generates an interactive Spring application startup report that lets you understand what contributes to the application startup time and helps to optimize it. Support for...
0
by: erikbower65 | last post by:
Here's a concise step-by-step guide for manually installing IntelliJ IDEA: 1. Download: Visit the official JetBrains website and download the IntelliJ IDEA Community or Ultimate edition based on...
0
by: Rina0 | last post by:
I am looking for a Python code to find the longest common subsequence of two strings. I found this blog post that describes the length of longest common subsequence problem and provides a solution in...
5
by: DJRhino | last post by:
Private Sub CboDrawingID_BeforeUpdate(Cancel As Integer) If = 310029923 Or 310030138 Or 310030152 Or 310030346 Or 310030348 Or _ 310030356 Or 310030359 Or 310030362 Or...
0
by: lllomh | last post by:
How does React native implement an English player?
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...

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.