473,324 Members | 2,473 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,324 software developers and data experts.

Showing a message to IE 5+ users (yes, the browser detection question again)

Hi,

I would like to display a message to Internet Explorer clients to
encorage them to get Firefox. Yes they may like Internet Explorer but
it is my site :)

http://www.explorerdestroyer.com/ uses navigator.userAgent

If ((ua.indexOf('msie') != -1) &&
(ua.indexOf('opera') == -1) &&
(ua.indexOf('webtv') == -1)) {
/* show message to IE users*/
}

I'm sure there is a better way to do this general detection. I vaguely
remember seeing a post with a huge long if conditional testing many
different objects to determine a very specific version of IE. I think
Richard Cornford wrote it. I just spent an hour (literally!) searching
the archives and couldn't find the post unfortunately. It may have been
along the lines of the following but very extended.

if (window.ActiveXObject &&
document.all) {
/* show message to IE users*/
}

I wish I had bookmarked that post because I am generally curious to
learn more about different versions of Internet Explorer and which
features distinguish it.

I would like to detect IE 5 and newer. Any suggestions or anyone know
about this post?

Thank you,
Peter

Sep 24 '06 #1
22 2254
ASM
pe**********@gmail.com a écrit :
Hi,

I would like to display a message to Internet Explorer clients to
encorage them to get Firefox. Yes they may like Internet Explorer but
it is my site :)
in header's javascript :

var IE = false; /*@cc_on IE = true; @*/
if(IE &&
confirm('Be careful you don't use correct browser !\n'+
'Won't you try to get the most out of the Web ?\n'+
'FireFox is for you'))
window.open('http://www.mozilla.com/firefox/');
or in the page :

<div style="display:none" id=IE>
<h1>Be careful you don't use correct browser !</h1>
<h2>Won't you try to get the most out of the Web ?</h2>
<p><a href="http://www.mozilla.com/firefox/" target="_blank">
FireFox is for you</a></p>
</div>
<script type="text/javascript">
var IE = false; /*@cc_on IE = true; @*/
if(IE) document.all['IE'].style.display='block';
</script>
nota :
/*@cc_on IE = true; @*/
detect all IEs even IE Mac
@cc_on ... @
is code in exclusive M$ script !
hidden to other browsers with /* ... */

--
ASM
Sep 25 '06 #3
Hi ASM,
var IE = false; /*@cc_on IE = true; @*/
/*@cc_on IE = true; @*/
detect all IEs even IE Mac
@cc_on ... @
is code in exclusive M$ script !
hidden to other browsers with /* ... */
This is very cool. What does @cc_on ... @ mean? @ is some special
thing? Do those letters cc_on stand for something meaningful?

It successfully detects IE 4, IE 5, IE 5.5, IE 6 on XP and IE 5 on OSX.
It also leaves the IE var false for Opera 8.5, Opera 9, Firefox 1.5 on
XP and Opera 9, Safari 1.3, Safari 2, Firefox 1.0, Firefox 1.5 on OS X.

Do you know if this will continue to work in IE 7?

Thank you,
Peter

Sep 25 '06 #4
pe**********@gmail.com said the following on 9/25/2006 1:02 AM:
Hi ASM,
>var IE = false; /*@cc_on IE = true; @*/
> /*@cc_on IE = true; @*/
detect all IEs even IE Mac
@cc_on ... @
is code in exclusive M$ script !
hidden to other browsers with /* ... */

This is very cool. What does @cc_on ... @ mean? @ is some special
thing? Do those letters cc_on stand for something meaningful?
Conditional Comment
It successfully detects IE 4, IE 5, IE 5.5, IE 6 on XP and IE 5 on OSX.
It also leaves the IE var false for Opera 8.5, Opera 9, Firefox 1.5 on
XP and Opera 9, Safari 1.3, Safari 2, Firefox 1.0, Firefox 1.5 on OS X.

Do you know if this will continue to work in IE 7?
Yes, Conditional Comments still work in IE 7.

--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Sep 25 '06 #5
ASM
pe**********@gmail.com a écrit :
Hi ASM,
Hi peter,
>var IE = false; /*@cc_on IE = true; @*/
> /*@cc_on IE = true; @*/
detect all IEs even IE Mac
@cc_on ... @
is code in exclusive M$ script !
hidden to other browsers with /* ... */

This is very cool. What does @cc_on ... @ mean? @ is some special
thing? Do those letters cc_on stand for something meaningful?
@cc_on starts Jscript language (Jscript statement)
It successfully detects IE 4, IE 5, IE 5.5, IE 6 on XP and IE 5 on OSX.
It also leaves the IE var false for Opera 8.5, Opera 9, Firefox 1.5 on
XP and Opera 9, Safari 1.3, Safari 2, Firefox 1.0, Firefox 1.5 on OS X.

Do you know if this will continue to work in IE 7?
No reason it will not.
because, as I said, there you speak Jscript (M$ javascript) unknown by
other browsers.

ask to google : @cc_on

http://ns7.webmasters.com/caspdoc/ht..._statement.htm
<http://msdn.microsoft.com/library/default.asp?url=/library/en-us/script56/html/1e9b3876-3d38-4fd8-8596-1bbfe2330aa9.asp>

--
ASM
Sep 25 '06 #6
ASM said the following on 9/25/2006 7:48 PM:
pe**********@gmail.com a écrit :
>Hi ASM,

Hi peter,
>>var IE = false; /*@cc_on IE = true; @*/
>> /*@cc_on IE = true; @*/
detect all IEs even IE Mac
@cc_on ... @
is code in exclusive M$ script !
hidden to other browsers with /* ... */

This is very cool. What does @cc_on ... @ mean? @ is some special
thing? Do those letters cc_on stand for something meaningful?

@cc_on starts Jscript language (Jscript statement)
No, it doesn't. To quote your own resource:

<quote>
The @cc_on statement activates conditional compilation in the scripting
engine.
</quote>

It does not start JScript language.

<snip>
http://ns7.webmasters.com/caspdoc/ht..._statement.htm
--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Sep 26 '06 #7
ASM
Randy Webb a écrit :
ASM said the following on 9/25/2006 7:48 PM:
>@cc_on starts Jscript language (Jscript statement)

No, it doesn't. To quote your own resource:

<quote>
The @cc_on statement activates conditional compilation in the scripting
engine.
</quote>

It does not start JScript language.
No it starts french ?
<snip>
>http://ns7.webmasters.com/caspdoc/ht..._statement.htm

Sep 26 '06 #8
ASM said the following on 9/25/2006 10:44 PM:
Randy Webb a écrit :
>ASM said the following on 9/25/2006 7:48 PM:
>>@cc_on starts Jscript language (Jscript statement)

No, it doesn't. To quote your own resource:

<quote>
The @cc_on statement activates conditional compilation in the
scripting engine.
</quote>

It does not start JScript language.

No it starts french ?
Something like that, but it sure as heck doesn't "starts Jscript language".

--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Sep 26 '06 #9
Randy Webb wrote:
ASM said the following on 9/25/2006 10:44 PM:
Seems to me that wherever dates are inserted into news messages that
the timeszone should be included. If other posters insert similar
unqualified data, I expect the times as represented in text to be out
of sync with the actual flow of events.

Perhaps you could add a timezone? That might also give a hint on how
to interpret the date where the day date value is less than 13 - an ISO
format would reduce confusion further.
--
Rob

Sep 26 '06 #10
ASM wrote:
pe**********@gmail.com a écrit :
Hi,

I would like to display a message to Internet Explorer clients to
encorage them to get Firefox. Yes they may like Internet Explorer but
it is my site :)
var IE = false; /*@cc_on IE = true; @*/
I have added a couple other conditions for detecting IE and they seem
to work in IE4+ and Mac IE5. Currently I have in the head element of my
document...

TryFirefox.isIE = false; /*@cc_on TryFirefox.isIE = true; @*/
if (!(TryFirefox.isIE &&
typeof window.ActiveXObject === 'function' &&
typeof document.all === 'object' &&
typeof document.parentWindow === 'object')) {
TryFirefox.isIE = false;
}

Any suggestions for things I could add to this list detect IE?

Thank you,
Peter

Sep 26 '06 #11
pe**********@gmail.com said the following on 9/26/2006 1:46 AM:
ASM wrote:
>pe**********@gmail.com a écrit :
>>Hi,

I would like to display a message to Internet Explorer clients to
encorage them to get Firefox. Yes they may like Internet Explorer but
it is my site :)
>var IE = false; /*@cc_on IE = true; @*/

I have added a couple other conditions for detecting IE and they seem
to work in IE4+ and Mac IE5. Currently I have in the head element of my
document...

TryFirefox.isIE = false; /*@cc_on TryFirefox.isIE = true; @*/
if (!(TryFirefox.isIE &&
typeof window.ActiveXObject === 'function' &&
typeof document.all === 'object' &&
typeof document.parentWindow === 'object')) {
TryFirefox.isIE = false;
}

Any suggestions for things I could add to this list detect IE?
I don't claim this list as mine, it isn't. It may be complete, it may
not be, but it shows what you can test for in a Conditional Compilation
in JScript:

@_win32 True if running on a Win32 system.
@_win16 True if running on a Win16 system.
@_mac True if running on an Apple Macintosh system.
@_alpha True if running on a DEC Alpha processor.
@_x86 True if running on an Intel processor.
@_mc680x0 True if running on a Motorola 680x0 processor.
@_PowerPC True if running on a Motorola PowerPC processor.
@_jscript Always true.
@_jscript_build
Contains the build number of the JScript scripting engine.
@_jscript_version
Contains the JScript version number in major.minor format.

So you could test to see if it is win16, win32 or a mac. And point them
to the appropriate Firefox page (Mac or IE)

--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Sep 26 '06 #12
RobG said the following on 9/26/2006 12:33 AM EST:
Randy Webb wrote:
>ASM said the following on 9/25/2006 10:44 PM:

Seems to me that wherever dates are inserted into news messages that
the timeszone should be included.
I don't agree with that. The time zone is - typically - included the
Headers of an article.
If other posters insert similar unqualified data, I expect the times
as represented in text to be out of sync with the actual flow of events.
The newsreader displays them based on the timestamp in the headers, not
in any time/timezone in the message.
Perhaps you could add a timezone? That might also give a hint on how
to interpret the date where the day date value is less than 13 - an ISO
format would reduce confusion further.
I could, but I don't see any benefit to it. But, it's added, for what
it's worth.

--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Sep 26 '06 #13

Randy Webb wrote:
pe**********@gmail.com said the following on 9/26/2006 1:46 AM:
ASM wrote:
pe**********@gmail.com a écrit :
Hi,

I would like to display a message to Internet Explorer clients to
encorage them to get Firefox. Yes they may like Internet Explorer but
it is my site :)
var IE = false; /*@cc_on IE = true; @*/
I have added a couple other conditions for detecting IE and they seem
to work in IE4+ and Mac IE5. Currently I have in the head element of my
document...

TryFirefox.isIE = false; /*@cc_on TryFirefox.isIE = true; @*/
if (!(TryFirefox.isIE &&
typeof window.ActiveXObject === 'function' &&
typeof document.all === 'object' &&
typeof document.parentWindow === 'object')) {
TryFirefox.isIE = false;
}

Any suggestions for things I could add to this list detect IE?

I don't claim this list as mine, it isn't. It may be complete, it may
not be, but it shows what you can test for in a Conditional Compilation
in JScript:

@_win32 True if running on a Win32 system.
@_win16 True if running on a Win16 system.
@_mac True if running on an Apple Macintosh system.
@_alpha True if running on a DEC Alpha processor.
@_x86 True if running on an Intel processor.
@_mc680x0 True if running on a Motorola 680x0 processor.
@_PowerPC True if running on a Motorola PowerPC processor.
@_jscript Always true.
@_jscript_build
Contains the build number of the JScript scripting engine.
@_jscript_version
Contains the JScript version number in major.minor format.

So you could test to see if it is win16, win32 or a mac. And point them
to the appropriate Firefox page (Mac or IE)
Hi Randy,

Thanks. It seems that http://getfirefox.com will determine the users
operating system by navigator.userAgent. And I suppose if someone is
going out of there way to spoof userAgent they know enough to get
Firefox.

Peter

Sep 26 '06 #14
pe**********@gmail.com wrote:
<snip>
Thanks. It seems that http://getfirefox.com will determine
the users operating system by navigator.userAgent. And I
suppose if someone is going out of there way to spoof
userAgent they know enough to get Firefox.
That is a pathetic excuse for doing something that has no technical basis
whatsoever, and it doesn't take into account that numerous browsers use
default UA strings that are indistinguishable from those of IE, or that
browsers built around embedded IE may not reveal that in their default UA
string.

But on the whole bothering a user about their choice of browsers is as
bad when it is encouraging people not to use IE as it is when its "this
site is optimised for IE". Systems can be designed to be viable for all
the browsers that are likely to visit it, and for the public internet any
other thinking reveals limitations on the part of the author not on the
part of some browser(s).

Richard.
Sep 26 '06 #15
Richard Cornford wrote:
But on the whole bothering a user about their choice of browsers
I think the majority of IE users didn't choose IE. They don't even know
there are options. On some websites it is not a bad idea to give users
a tip that Firefox (or another) is worth looking at as an alternative.
is as
bad when it is encouraging people not to use IE as it is when its "this
site is optimised for IE". Systems can be designed to be viable for all
the browsers that are likely to visit it, and for the public internet any
other thinking reveals limitations on the part of the author not on the
part of some browser(s).
Of course even if IE was brought down to 10% we would still have to
make websites work on IE. Not having to program for IE isn't my
motivation since IE will not be disappearing soon. An informative
banner suggesting Firefox that only appears to IE users could turn some
people on to a better browser option.

Peter

Sep 26 '06 #16
VK

pe**********@gmail.com wrote:
I think the majority of IE users didn't choose IE. They don't even know
there are options. On some websites it is not a bad idea to give users
a tip that Firefox (or another) is worth looking at as an alternative.
You can use this combo check (using both script type attribute and IE's
conditional compilation statements):

<html>
<head>
<title>Combo check</title>
<meta http-equiv="Content-Type"
content="text/html; charset=iso-8859-1">

<script type="text/javascript">
var message = '';
</script>

<script type="text/Jscript">
/*@cc_on @*/
/*@if (@_jscript)
message = 'You are using Internet Explorer.\n'
+ 'With full respect to your choice I would like '
+ 'to suggest some useful alternatives: ...';
@else @*/
message = 'Your browser pretends to be Internet Explorer '
+ 'and reports itself as such to servers. At the same time '
+ 'it is not really Internet Explorer, so spoofed server '
+ 'will probably serve a content this UA cannot handle.\n'
+ 'Do not be a liar and do not support liars!\n'
+ 'Here are some useful alternatives: ...';
/*@end @*/
</script>

<script type="text/javascript">
if (message) {
window.alert(message);
}
</script>

</head>

<body>

</body>
</html>

Sep 26 '06 #17
VK wrote:
<snip>
/*@cc_on @*/
/*@if (@_jscript)
message = 'You are using Internet Explorer.\n'
+ 'With full respect to your choice I would like '
+ 'to suggest some useful alternatives: ...';
@else @*/
message = 'Your browser pretends to be Internet Explorer '
+ 'and reports itself as such to servers. At the same time '
+ 'it is not really Internet Explorer, so spoofed server '
+ 'will probably serve a content this UA cannot handle.\n'
This is a lie. The reason browsers spoof IE is because if the server
thinks they are IE it _probably_will_ serve them content they can
handle. And the reason Microsoft invented UA string spoofing was
because at the time pretending to be Netscape was the way of getting
servers to send content that IE could handle.
+ 'Do not be a liar and do not support liars!\n'
You like to give a lot of advice you don't follow yourself.

As the IE UA string is a lie itself (asserting as it does that the
browser is Netscape 4) it is difficult to see fault in others telling
the same lie. (Especially as the HTTP 1.1 definition of a user agent
header does not require it to have an meaningful/true content at all; a
statement cannot be untrue unless there a criteria for truth that can
be attached to it, which is not the case with UA headers)

Richard.

Sep 26 '06 #18
ASM
Randy Webb a écrit :
ASM said the following on 9/25/2006 10:44 PM:
>Randy Webb a écrit :
>>ASM said the following on 9/25/2006 7:48 PM:
@cc_on starts Jscript language (Jscript statement)

No, it doesn't. To quote your own resource:

<quote>
The @cc_on statement activates conditional compilation in the
scripting engine.
</quote>

It does not start JScript language.

No it starts french ?

Something like that, but it sure as heck doesn't "starts Jscript language".
begins speaking Jscript would-it be better ?

(and accepted !)

What you did quote forgives there are other conditional instructions by
the world (for instance JavaScript), and as it was told were are
speaking in Javascript what if not '@cc_on' could say to IE from now we
speak in Jscript ?
So in shortcut : that starts Jscript (instructions whom statement ...)

--
ASM
Sep 26 '06 #19
VK

Richard Cornford wrote:
This is a lie. The reason browsers spoof IE is because if the server
thinks they are IE it _probably_will_ serve them content they can
handle.
Like XSLT to Opera 8.x, right? ;-)
And the reason Microsoft invented UA string spoofing was
because at the time pretending to be Netscape was the way of getting
servers to send content that IE could handle.
I do not recall "mozilla" in HTTP.USER_AGENT string would be ever used
for a particular UA detecting. From NN2/IE2 that already was "isNN or
isIE or isSomeoneElse".

In some really old server-side scripts "mozilla" presence was used to
determine graphics enabled agents - thus able to render <img>'s and
table layouts, not text stream only (that was a revolutionnary feature
not yet supported by everyone).
This is why any graphics enabled agents adopted "mozilla" at the
beginning of the USER_AGENT string to pass the check successfully.
Please not that it was not a browser sniffing - that was exactly a
*feature check* based on the UA's string. That is a well past history
how, but as a remainder text-only UA's like Lynx still never have
"mozilla" in the USER_AGENT string: unless manually changed or cluessly
made.
As the IE UA string is a lie itself (asserting as it does that the
browser is Netscape 4)
Why exactly Netscape 4? Maybe it wants to pretent to be a Mozilla
prototype or Netscape 1 ? ;-)
it is difficult to see fault in others telling
the same lie.
With "mozilla" legacy it is not a spoofing of a particular UA and it
never was IMHO.
That's as I once said kind of the cross sign placed at the first line
of medieval manuscripts:
"Remembering the Greats who were before us... and now back to
business:..." :-)

I see no correlation wih the situation when one currently existing UA
is actively pretending to be another currently existing UA by applying
mimicry not to USER_AGENT string only, but to the entire host
environment (while this host environment is far of being equal to the
spooffed one).

P.S. I really refuse to take a wannabe seriously if it starts its
"marked buttle" with a USER_AGENT string like "...MSIE...Internet
Explorer...like Gecko..." (no names, but these are real parts of a real
userAgent string). "Internet Explorer like Gecko" - sure, that's a hell
of serious competitor, I'll apply my best to support it. :-)

Sep 26 '06 #20
ASM
Richard Cornford a écrit :
>
But on the whole bothering a user about their choice of browsers is as
bad when it is encouraging people not to use IE as it is when its "this
site is optimised for IE".
a little banner for FireFox is
not worts than google advertisements

I do agree with 2nd point ! ! (with my Mac) :-)

--
ASM
Sep 26 '06 #21
VK wrote:
Richard Cornford wrote:
This is a lie. The reason browsers spoof IE is because if the server
thinks they are IE it _probably_will_ serve them content they can
handle.

Like XSLT to Opera 8.x, right? ;-)
Most (even relatively unskilled) web developers would not use a UA
string test to determine whether to send XSLT to a client (indeed most
would do their XSLT on the server, and then the client's problem is
only HTML).

One fool may use a UA string test to server XSLT, while another may use
it to redirect to a page telling a user that they need another browser,
and another may decide a text only site is better than sending
HTML/CSS/javascript to a browser that could handle it if it got it. The
browser spoofing IE will only suffer if it encounters the first fool,
not the second two. Hence the browser that spoof _probably_will_ be
served content it can handle.
>And the reason Microsoft invented UA string spoofing was
because at the time pretending to be Netscape was the way of
getting servers to send content that IE could handle.

I do not recall "mozilla" in HTTP.USER_AGENT string would be ever
used for a particular UA detecting.
The contents of your mind have no baring on reality.
From NN2/IE2 that already was "isNN or
isIE or isSomeoneElse".

In some really old server-side scripts "mozilla" presence was
used to determine graphics enabled agents
This being the thing that you don't remember?
- thus able to render <img>'s and table layouts,
And if a server say 'this browser's UA is unrecognised so I will not be
sending images' but the browser can handle images it producers best
plan is to spoof the UA string of a browser that is recognised as
understanding images. And so it has been for every browser ever since.
not text stream only (that was a revolutionnary feature
not yet supported by everyone).
The deranged associations in your mind often migrate to the irrelevant.
This is why any graphics enabled agents adopted "mozilla"
at the beginning of the USER_AGENT
You don't think Microsoft put Mozilla 4 there because they had CSS
support and a scriptable object model?
string to pass the check successfully.
Please not that it was not a browser sniffing - that was exactly a
*feature check* based on the UA's string.
There is no such thing as a "feature check based on the UA string". UA
string testing is browser sniffing (or at least it was before UA
strings stopped being discriminating).
That is a well past history how, but as a remainder text-only
UA's like Lynx still never have "mozilla" in the USER_AGENT
string: unless manually changed or cluessly made.
That is not true. Making up your own fictional explanations for things
doesn't impress anyone. You don't have the experience of web browsers
to declare a general relationship between a UA string starting Mozilla
and a browser's support for images, and no such relationship exists in
reality.
>As the IE UA string is a lie itself (asserting as it does that the
browser is Netscape 4)

Why exactly Netscape 4? Maybe it wants to pretent to be a
Mozilla prototype or Netscape 1 ? ;-)
Netscape 4 introduced scriptable futures that IE 4 mirrored, it also
had acceptable CSS support, that IE 45 bettered.
>it is difficult to see fault in others telling
the same lie.

With "mozilla" legacy it is not a spoofing of a particular UA and it
never was IMHO.
Your opinions are, as always, worthless.
That's as I once said kind of the cross sign placed at the first line
of medieval manuscripts:
"Remembering the Greats who were before us... and now back to
business:..." :-)
You habit of talking rubbish is just one of the reasons you opinions
are worthless.
I see no correlation wih the situation when one currently existing
UA is actively pretending to be another currently existing UA by
applying mimicry not to USER_AGENT string only, but to the
entire host environment (while this host environment is far of
being equal to the spooffed one).
Your perceptions are as worthless as your opinions. The situations is
simply that expedience has lead to a situation where spoofing is
practiced, and the cause of that situation (inept web developers) has
not gone away so spoofing can be expected to carry on.
P.S. I really refuse to take a wannabe seriously
You don't have the skills necessary to have the choice of accommodating
them, so you are just trying to cover up that deficit with a dismissive
attitude.
"marked buttle" with a USER_AGENT string like "...MSIE...Internet
Explorer...like Gecko..." (no names, but these are real parts of a real
userAgent string). "Internet Explorer like Gecko" - sure, that's a hell
of serious competitor, I'll apply my best to support it. :-)
The User Agent string is not specified as a source of information so
treating it as such in inept. Once you recognise that you don't have to
care about User Agent strings and what they contain does not matter.

That fools like you do stupid things like attempting to derive meaning
form something that should never be treated as a source of information,
and cause browser manufacturers headaches in doing so, directly results
in these types of things appearing in UA strings.

Richard.

Sep 26 '06 #22
JRS: In article <28******************************@comcast.com>, dated
Tue, 26 Sep 2006 02:54:08 remote, seen in news:comp.lang.javascript,
Randy Webb <Hi************@aol.composted :
>RobG said the following on 9/26/2006 12:33 AM EST:
>Randy Webb wrote:
>Perhaps you could add a timezone? That might also give a hint on how
^^^^^^^^
You don't want truly that; a timezone is geographically fixed. You want
an indicator of the offset from GMT, which can vary seasonally. Though
Comcast evidently does not use DST in header lines.
>to interpret the date where the day date value is less than 13 - an ISO
format would reduce confusion further.

I could, but I don't see any benefit to it. But, it's added, for what
it's worth.
Unless writing for a purely American audience with no interest in the
Outside World, the only reliable Offset Indicators are GMT & UTC.

I know of at least three meanings for BST. And EST is Eastern Standard
Time, for Australia and America. RobG is manifestly in Australia,
though he posts from the Vancouver time zone.

Ideally, GMT/UTC would be used, and ISO 8601 date/time format; but
newsreaders don't necessarily include that choice.

--
© John Stockton, Surrey, UK. ?@merlyn.demon.co.uk Turnpike v4.00 MIME. ©
Web <URL:http://www.merlyn.demon.co.uk/- w. FAQish topics, links, acronyms
PAS EXE etc : <URL:http://www.merlyn.demon.co.uk/programs/- see 00index.htm
Dates - miscdate.htm moredate.htm js-dates.htm pas-time.htm critdate.htm etc.
Sep 27 '06 #23

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Szar | last post by:
JS noob. I've seen plenty of browser detection scripts but they all seem to be slightly different and don't really fit my needs. I have various places where if the browser is IE I'd like to display...
16
by: Jonas Smithson | last post by:
I'm going to say something now that may seem to completely contradict a previous post of mine, in which I basically said that taking a "who cares" attitude about certain browsers (because of their...
5
by: chris | last post by:
i have a set od radio buttons what i wanty to do is when one particular button is selected bring up an additional text box for additional information how would i do this
17
by: lawrence | last post by:
How is it possible that the question "How do I detect which browser the user has" is missing from this FAQ: http://www.faqts.com/knowledge_base/index.phtml/fid/125 and is only here on this...
8
by: R. Smits | last post by:
I've have got this script, the only thing I want to be changed is the first part. It has to detect IE version 6 instead of just "Microsoft Internet Explorer". Can somebody help me out? I tried...
8
by: Jimnbigd | last post by:
What is the recommended code to test browser type, for conditional processing in Javascript? I have seen tests for "document.all". I have seen tests for the actual browser name, or substrings in...
4
by: trpost | last post by:
I am looking for a script using javascript to pull browser information including, browser type and version, OS info, plugins (flash, acrobat, media player, etc), java version, etc. that will work...
1
by: Grimm | last post by:
I am developing an internalk inteface that integrates alot of seperate tools into one interface. The current version uses one Iframe inside a div layer for positioning. Currently the seperate web...
20
by: luqman | last post by:
If user login with the login control in ASP.Net 2005 and then just close the browser and then open the browser again, the login status shows, User still Login? Any idea, how to Logout the User...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.