Connecting Tech Pros Worldwide Help | Site Map

HTML Header Problem

  #1  
Old July 23rd, 2005, 06:35 PM
Terry
Guest
 
Posts: n/a
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

  #2  
Old July 23rd, 2005, 06:35 PM
Mick White
Guest
 
Posts: n/a

re: HTML Header Problem


Terry wrote:
[color=blue]
>
> 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.
>[/color]

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
  #3  
Old July 23rd, 2005, 06:35 PM
Randy Webb
Guest
 
Posts: n/a

re: HTML Header Problem


Terry wrote:[color=blue]
> 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">[/color]

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.

[color=blue]
> 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.[/color]

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.
[color=blue]
> Thanks in advance![/color]

Welcome.


--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq
  #4  
Old July 23rd, 2005, 06:35 PM
Richard
Guest
 
Posts: n/a

re: HTML Header Problem


On Fri, 04 Feb 2005 17:38:33 -0500 Randy Webb wrote:
[color=blue]
> Terry wrote:[color=green]
>> Hi,[/color][/color]
[color=blue][color=green]
>> I built a website using the HMTL header:[/color][/color]
[color=blue][color=green]
>> <!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">[/color][/color]
[color=blue][color=green]
>> All the CSS layout stuff looks good.[/color][/color]
[color=blue][color=green]
>> 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:[/color][/color]
[color=blue][color=green]
>> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">[/color][/color]
[color=blue]
> 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.[/color]

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

[color=blue][color=green]
>> 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.[/color][/color]
[color=blue]
> 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.[/color]
[color=blue][color=green]
>> Thanks in advance![/color][/color]
[color=blue]
> Welcome.[/color]

[color=blue]
> --
> Randy
> comp.lang.javascript FAQ - http://jibbering.com/faq[/color]


  #5  
Old July 23rd, 2005, 06:35 PM
Richard
Guest
 
Posts: n/a

re: HTML Header Problem


On Fri, 4 Feb 2005 16:17:25 -0600 Terry wrote:
[color=blue]
> Hi,[/color]
[color=blue]
> I built a website using the HMTL header:[/color]
[color=blue]
> <!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">[/color]
[color=blue]
> All the CSS layout stuff looks good.[/color]
[color=blue]
> 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:[/color]
[color=blue]
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">[/color]
[color=blue]
> 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.[/color]
[color=blue]
> Thanks in advance![/color]
[color=blue]
> Terry[/color]


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.



  #6  
Old July 23rd, 2005, 06:35 PM
Randy Webb
Guest
 
Posts: n/a

re: HTML Header Problem


Richard wrote:[color=blue]
> On Fri, 04 Feb 2005 17:38:33 -0500 Randy Webb wrote:
>
>[color=green]
>>Terry wrote:
>>[color=darkred]
>>>Hi,[/color][/color]
>
>[color=green][color=darkred]
>>>I built a website using the HMTL header:[/color][/color]
>
>[color=green][color=darkred]
>>><!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">[/color][/color]
>
>[color=green][color=darkred]
>>>All the CSS layout stuff looks good.[/color][/color]
>
>[color=green][color=darkred]
>>>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:[/color][/color]
>
>[color=green][color=darkred]
>>><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">[/color][/color]
>
>[color=green]
>>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.[/color]
>
>
> What browser and system?
> All works fine for me in firefox.[/color]

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
  #7  
Old July 23rd, 2005, 06:36 PM
Christopher Benson-Manica
Guest
 
Posts: n/a

re: HTML Header Problem


Mick White <mwhite13BOGUS@rochester.rr.com> spoke thus:
[color=blue]
> I'd say there's something wrong with your neat javascript if it works
> only in quirks mode. And why are you using XHTML ?[/color]

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.
  #8  
Old July 23rd, 2005, 06:36 PM
Mick White
Guest
 
Posts: n/a

re: HTML Header Problem


Christopher Benson-Manica wrote:
[color=blue]
> Mick White <mwhite13BOGUS@rochester.rr.com> spoke thus:
>
>[color=green]
>>I'd say there's something wrong with your neat javascript if it works
>>only in quirks mode. And why are you using XHTML ?[/color]
>
>
> What's wrong with XHTML?
>[/color]

99% of the time it is not necessary, are you feeding XML documents?
Mick
  #9  
Old July 23rd, 2005, 06:36 PM
Michael Winter
Guest
 
Posts: n/a

re: HTML Header Problem


Christopher Benson-Manica wrote:

[snip]
[color=blue]
> What's wrong with XHTML?[/color]

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.
Closed Thread


Similar Threads
Thread Thread Starter Forum Replies Last Post
Header Problem (Its a very urgent). anis2007 answers 4 November 24th, 2006 11:06 AM
Authorization HTML Header going missing Shaun Wilde answers 15 November 19th, 2005 12:29 AM
header problem - want to display html AND download a file mike answers 2 July 17th, 2005 04:16 AM
problem retrieving html header made by php Fabrice answers 1 July 17th, 2005 04:15 AM