Connecting Tech Pros Worldwide Forums | Help | Site Map

Javascript will not display date correctly in FIREFOX, ok in EXPLORER

kroger@princeton.edu
Guest
 
Posts: n/a
#1: Jul 23 '05
Hi. I am at a loss to decipher why the javascript on my web page:

http://www.psych.nmsu.edu/~jkroger/lab/index.html

does not display the date correctly in Firefox. Instead of "2005" for
the year,
it displays "105" ... however, in IE Explorer, it looks fine.
Thanks for any help,
Jim


McKirahan
Guest
 
Posts: n/a
#2: Jul 23 '05

re: Javascript will not display date correctly in FIREFOX, ok in EXPLORER


<kroger@princeton.edu> wrote in message
news:1106961495.669881.20920@z14g2000cwz.googlegro ups.com...[color=blue]
> Hi. I am at a loss to decipher why the javascript on my web page:
>
> http://www.psych.nmsu.edu/~jkroger/lab/index.html
>
> does not display the date correctly in Firefox. Instead of "2005" for
> the year,
> it displays "105" ... however, in IE Explorer, it looks fine.
> Thanks for any help,
> Jim
>[/color]

Change
year = now.getYear();
to
year = now.getFullYear();


McKirahan
Guest
 
Posts: n/a
#3: Jul 23 '05

re: Javascript will not display date correctly in FIREFOX, ok in EXPLORER


"McKirahan" <News@McKirahan.com> wrote in message
news:obWdnaw25LX7dGfcRVn-3A@comcast.com...[color=blue]
> <kroger@princeton.edu> wrote in message
> news:1106961495.669881.20920@z14g2000cwz.googlegro ups.com...[color=green]
> > Hi. I am at a loss to decipher why the javascript on my web page:
> >
> > http://www.psych.nmsu.edu/~jkroger/lab/index.html
> >
> > does not display the date correctly in Firefox. Instead of "2005" for
> > the year,
> > it displays "105" ... however, in IE Explorer, it looks fine.
> > Thanks for any help,
> > Jim
> >[/color]
>
> Change
> year = now.getYear();
> to
> year = now.getFullYear();[/color]

getYear and getFullYear
http://www.quirksmode.org/js/datecompat.html

http://www.developersdex.com/asp/mes...2978&r=3701766


Dr John Stockton
Guest
 
Posts: n/a
#4: Jul 23 '05

re: Javascript will not display date correctly in FIREFOX, ok in EXPLORER


JRS: In article <1106961495.669881.20920@z14g2000cwz.googlegroups. com>,
dated Fri, 28 Jan 2005 17:18:15, seen in news:comp.lang.javascript,
kroger@princeton.edu posted :[color=blue]
>Hi. I am at a loss to decipher why the javascript on my web page:
>
>http://www.psych.nmsu.edu/~jkroger/lab/index.html
>
>does not display the date correctly in Firefox. Instead of "2005" for
>the year,
>it displays "105" ... however, in IE Explorer, it looks fine.[/color]

Before posting to a newsgroup, you should read its FAQ; the FAQ for this
group is posted thrice a week, in two parts.

Indeed, you should read relevant FAQs before writing Web pages too; the
time you thus save includes your own.

Probably you are using method getYear which AIUI in various systems
can for current dates return 5, 105, or 2005.

Method getFullYear is available in current browsers (but be careful
if you are writing for the third world or backwoods colleges). And a
programmer can construct it from getYear and getTime . But if
that is the current date, then
(a) 2000 + getYear()%100 will do for quite a while
(b) telling the reader the current date is a waste of bandwidth.

--
© John Stockton, Surrey, UK. ?@merlyn.demon.co.uk Turnpike v4.00 IE 4 ©
<URL:http://www.jibbering.com/faq/> JL/RC: FAQ of news:comp.lang.javascript
<URL:http://www.merlyn.demon.co.uk/js-index.htm> jscr maths, dates, sources.
<URL:http://www.merlyn.demon.co.uk/> TP/BP/Delphi/jscr/&c, FAQ items, links.
Ed Mullen
Guest
 
Posts: n/a
#5: Jul 23 '05

re: Javascript will not display date correctly in FIREFOX, ok in EXPLORER


Dr John Stockton wrote:
[color=blue]
> JRS: In article <1106961495.669881.20920@z14g2000cwz.googlegroups. com>,
> dated Fri, 28 Jan 2005 17:18:15, seen in news:comp.lang.javascript,
> kroger@princeton.edu posted :
>[color=green]
>>Hi. I am at a loss to decipher why the javascript on my web page:
>>
>>http://www.psych.nmsu.edu/~jkroger/lab/index.html
>>
>>does not display the date correctly in Firefox. Instead of "2005" for
>>the year,
>>it displays "105" ... however, in IE Explorer, it looks fine.[/color]
>
>
> Before posting to a newsgroup, you should read its FAQ; the FAQ for this
> group is posted thrice a week, in two parts.[/color]

Really? Never seen it here. Perhaps it's sent via an email news feed?



--
Ed Mullen
http://edmullen.net
http://edmullen.net/moz.html
Michael Winter
Guest
 
Posts: n/a
#6: Jul 23 '05

re: Javascript will not display date correctly in FIREFOX, ok in EXPLORER


On Sun, 30 Jan 2005 14:30:05 -0500, Ed Mullen <ed@edmullen.net> wrote:

[Auto-posted FAQ]
[color=blue]
> Really? Never seen it here. Perhaps it's sent via an email news feed?[/color]

No. It's posted just before 1200 GMT[1] every Monday, Wednesday and
Friday. It has been for as long as I've read this group.

Mike


[1] Possibly +0100 in the summer. I don't have those posts on this machine.

--
Michael Winter
Replace ".invalid" with ".uk" to reply by e-mail.
Ed Mullen
Guest
 
Posts: n/a
#7: Jul 23 '05

re: Javascript will not display date correctly in FIREFOX, ok in EXPLORER


Michael Winter wrote:[color=blue]
> On Sun, 30 Jan 2005 14:30:05 -0500, Ed Mullen <ed@edmullen.net> wrote:
>
> [Auto-posted FAQ]
>[color=green]
>> Really? Never seen it here. Perhaps it's sent via an email news feed?[/color]
>
>
> No. It's posted just before 1200 GMT[1] every Monday, Wednesday and
> Friday. It has been for as long as I've read this group.
>
> Mike
>
>
> [1] Possibly +0100 in the summer. I don't have those posts on this machine.
>[/color]

Nope, sorry. Been reading this group since at least early 2003 and I've
never seen a FAQ posted. Again, perhaps it is automatically sent on the
mailing list but I'm not seeing it on
news://news.mozilla.org:119/netscape...ozilla.general using
Mozilla Suite Mail/News. I see messages here going back to 11/13/2004
and there's no FAQ among them.

--
Ed Mullen
http://edmullen.net
http://edmullen.net/moz.html
Christopher Jahn
Guest
 
Posts: n/a
#8: Jul 23 '05

re: Javascript will not display date correctly in FIREFOX, ok in EXPLORER


Ed Mullen <ed@edmullen.net> wrote in
news:ctjcju$2261@ripley.netscape.com:
[color=blue]
> Dr John Stockton wrote:[color=green]
>>
>> Before posting to a newsgroup, you should read its FAQ; the FAQ for
>> this group is posted thrice a week, in two parts.[/color]
>
> Really? Never seen it here. Perhaps it's sent via an email news
> feed?[/color]

This is heavily cross-posted. One of the other groups may indeed have a
weekly FAQ posted, but not here in netscape.public.mozilla.general

This is a classic example of why cross-posting is a bozo-no no.

Followups set to netscape.public.mozilla.general


--
}:-) Christopher Jahn
{:-( http://www.actorsplayhouse.org

"But we'll never survive!" "Nonsense. You're only saying that
because no one ever has." William Goldman, THE PRINCESS BRIDE
Richard Cornford
Guest
 
Posts: n/a
#9: Jul 23 '05

re: Javascript will not display date correctly in FIREFOX, ok in EXPLORER


Ed Mullen wrote:[color=blue]
> Michael Winter wrote:[/color]
<snip>[color=blue][color=green]
>> No. It's posted just before 1200 GMT[1] every Monday, Wednesday
>> and Friday. It has been for as long as I've read this group.[/color][/color]
<snip>[color=blue]
> Nope, sorry. Been reading this group since at least early 2003
> and I've never seen a FAQ posted. Again, perhaps it is
> automatically sent on the mailing list but I'm not seeing it on
> news://news.mozilla.org:119/netscape...ozilla.general using
> Mozilla Suite Mail/News. I see messages here going back to
> 11/13/2004 and there's no FAQ among them.[/color]

The extensive list of cross-posted groups is not being observed. The FAQ
in question is the one belonging to comp.lang.javascript (and it is
posted to the group as described).

Richard.


Ed Mullen
Guest
 
Posts: n/a
#10: Jul 23 '05

re: Javascript will not display date correctly in FIREFOX, ok in EXPLORER


Richard Cornford wrote:
[color=blue]
> Ed Mullen wrote:
>[color=green]
>>Michael Winter wrote:[/color]
>
> <snip>
>[color=green][color=darkred]
>>>No. It's posted just before 1200 GMT[1] every Monday, Wednesday
>>>and Friday. It has been for as long as I've read this group.[/color][/color]
>
> <snip>
>[color=green]
>>Nope, sorry. Been reading this group since at least early 2003
>>and I've never seen a FAQ posted. Again, perhaps it is
>>automatically sent on the mailing list but I'm not seeing it on
>>news://news.mozilla.org:119/netscape...ozilla.general using
>>Mozilla Suite Mail/News. I see messages here going back to
>>11/13/2004 and there's no FAQ among them.[/color]
>
>
> The extensive list of cross-posted groups is not being observed. The FAQ
> in question is the one belonging to comp.lang.javascript (and it is
> posted to the group as described).
>
> Richard.
>
>[/color]

Ahhh! Excellent. Thank you.

--
Ed Mullen
http://edmullen.net
http://edmullen.net/moz.html
David Biddulph
Guest
 
Posts: n/a
#11: Jul 23 '05

re: Javascript will not display date correctly in FIREFOX, ok in EXPLORER


"Ed Mullen" <ed@edmullen.net> wrote in message
news:ctjflp$se71@ripley.netscape.com...[color=blue]
> Michael Winter wrote:[color=green]
>> On Sun, 30 Jan 2005 14:30:05 -0500, Ed Mullen <ed@edmullen.net> wrote:
>>
>> [Auto-posted FAQ][/color][/color]
[color=blue][color=green][color=darkred]
>>> Really? Never seen it here. Perhaps it's sent via an email news feed?[/color][/color][/color]
[color=blue][color=green]
>> No. It's posted just before 1200 GMT[1] every Monday, Wednesday and
>> Friday. It has been for as long as I've read this group.[/color][/color]
....[color=blue][color=green]
>> [1] Possibly +0100 in the summer. I don't have those posts on this
>> machine.[/color][/color]
[color=blue]
> Nope, sorry. Been reading this group since at least early 2003 and I've
> never seen a FAQ posted. Again, perhaps it is automatically sent on the
> mailing list but I'm not seeing it on
> news://news.mozilla.org:119/netscape...ozilla.general using Mozilla
> Suite Mail/News. I see messages here going back to 11/13/2004 and there's
> no FAQ among them.[/color]

I think the FAQ referred to may be on comp.lang.javascript, one of the list
of groups to which this thread was cross-posted.
--
David Biddulph


Daffy Duck
Guest
 
Posts: n/a
#12: Jul 23 '05

re: Javascript will not display date correctly in FIREFOX, ok in EXPLORER


On 30.01.2005 13:51, Michael Winter wrote:
[color=blue]
> On Sun, 30 Jan 2005 14:30:05 -0500, Ed Mullen <ed@edmullen.net> wrote:
>
> [Auto-posted FAQ]
>[color=green]
>> Really? Never seen it here. Perhaps it's sent via an email news feed?[/color]
>
> No. It's posted just before 1200 GMT[1] every Monday, Wednesday and
> Friday. It has been for as long as I've read this group.
>
> Mike
>
>
> [1] Possibly +0100 in the summer. I don't have those posts on this machine.
>[/color]

Classic example of why x-posting is idiotic to say the least. Now you
got users confused over a FAQ that's posted to ONE group but not to the
other x-posted groups ... senseless waste of everybody's time and effort.

/dd
Ron Hunter
Guest
 
Posts: n/a
#13: Jul 23 '05

re: Javascript will not display date correctly in FIREFOX, ok in EXPLORER


Ed Mullen wrote:[color=blue]
> Michael Winter wrote:
>[color=green]
>> On Sun, 30 Jan 2005 14:30:05 -0500, Ed Mullen <ed@edmullen.net> wrote:
>>
>> [Auto-posted FAQ]
>>[color=darkred]
>>> Really? Never seen it here. Perhaps it's sent via an email news feed?[/color]
>>
>>
>>
>> No. It's posted just before 1200 GMT[1] every Monday, Wednesday and
>> Friday. It has been for as long as I've read this group.
>>
>> Mike
>>
>>
>> [1] Possibly +0100 in the summer. I don't have those posts on this
>> machine.
>>[/color]
>
> Nope, sorry. Been reading this group since at least early 2003 and I've
> never seen a FAQ posted. Again, perhaps it is automatically sent on the
> mailing list but I'm not seeing it on
> news://news.mozilla.org:119/netscape...ozilla.general using
> Mozilla Suite Mail/News. I see messages here going back to 11/13/2004
> and there's no FAQ among them.
>[/color]
Never seen it either....
Ron Hunter
Guest
 
Posts: n/a
#14: Jul 23 '05

re: Javascript will not display date correctly in FIREFOX, ok in EXPLORER


David Biddulph wrote:[color=blue]
> "Ed Mullen" <ed@edmullen.net> wrote in message
> news:ctjflp$se71@ripley.netscape.com...
>[color=green]
>>Michael Winter wrote:
>>[color=darkred]
>>>On Sun, 30 Jan 2005 14:30:05 -0500, Ed Mullen <ed@edmullen.net> wrote:
>>>
>>>[Auto-posted FAQ][/color][/color]
>
>[color=green][color=darkred]
>>>>Really? Never seen it here. Perhaps it's sent via an email news feed?[/color][/color]
>
>[color=green][color=darkred]
>>>No. It's posted just before 1200 GMT[1] every Monday, Wednesday and
>>>Friday. It has been for as long as I've read this group.[/color][/color]
>
> ...
>[color=green][color=darkred]
>>>[1] Possibly +0100 in the summer. I don't have those posts on this
>>>machine.[/color][/color]
>
>[color=green]
>>Nope, sorry. Been reading this group since at least early 2003 and I've
>>never seen a FAQ posted. Again, perhaps it is automatically sent on the
>>mailing list but I'm not seeing it on
>>news://news.mozilla.org:119/netscape...ozilla.general using Mozilla
>>Suite Mail/News. I see messages here going back to 11/13/2004 and there's
>>no FAQ among them.[/color]
>
>
> I think the FAQ referred to may be on comp.lang.javascript, one of the list
> of groups to which this thread was cross-posted.[/color]
I HATE cross-posted messages. BOUND to cause confusion!
Dr John Stockton
Guest
 
Posts: n/a
#15: Jul 23 '05

re: Javascript will not display date correctly in FIREFOX, ok in EXPLORER


JRS: In article <ctjcju$2261@ripley.netscape.com>, dated Sun, 30 Jan
2005 14:30:05, seen in news:comp.lang.javascript, Ed Mullen
<ed@edmullen.net> posted :[color=blue]
>Dr John Stockton wrote:
>[color=green]
>> JRS: In article <1106961495.669881.20920@z14g2000cwz.googlegroups. com>,
>> dated Fri, 28 Jan 2005 17:18:15, seen in news:comp.lang.javascript,
>> kroger@princeton.edu posted :
>>[color=darkred]
>>>Hi. I am at a loss to decipher why the javascript on my web page:
>>>
>>>http://www.psych.nmsu.edu/~jkroger/lab/index.html
>>>
>>>does not display the date correctly in Firefox. Instead of "2005" for
>>>the year,
>>>it displays "105" ... however, in IE Explorer, it looks fine.[/color]
>>
>>
>> Before posting to a newsgroup, you should read its FAQ; the FAQ for this
>> group is posted thrice a week, in two parts.[/color]
>
>Really? Never seen it here. Perhaps it's sent via an email news feed?[/color]


But what do *you* mean by "here"?

If you had read the attribution which you quoted, you would have seen
exactly what I meant by "here". The signature of that article provided
a further clue.

Before responding to an article, read it all, including the significant
header lines and signature; and think about what you have read.
Remember that the responsibility for your outgoing newsgroups line is
yours and yours alone.

--
© John Stockton, Surrey, UK. ?@merlyn.demon.co.uk Turnpike v4.00 IE 4 ©
<URL:http://www.jibbering.com/faq/> JL/RC: FAQ of news:comp.lang.javascript
<URL:http://www.merlyn.demon.co.uk/js-index.htm> jscr maths, dates, sources.
<URL:http://www.merlyn.demon.co.uk/> TP/BP/Delphi/jscr/&c, FAQ items, links.
Bozo
Guest
 
Posts: n/a
#16: Jul 23 '05

re: Javascript will not display date correctly in FIREFOX, ok in EXPLORER


On 29.01.2005 17:44, Dr John Stockton wrote:

--- Original Message ---
[color=blue]
> JRS: In article <1106961495.669881.20920@z14g2000cwz.googlegroups. com>,
> dated Fri, 28 Jan 2005 17:18:15, seen in news:comp.lang.javascript,
> kroger@princeton.edu posted :[color=green]
>>Hi. I am at a loss to decipher why the javascript on my web page:
>>
>>http://www.psych.nmsu.edu/~jkroger/lab/index.html
>>
>>does not display the date correctly in Firefox. Instead of "2005" for
>>the year,
>>it displays "105" ... however, in IE Explorer, it looks fine.[/color]
>
> Before posting to a newsgroup, you should read its FAQ; the FAQ for this
> group is posted thrice a week, in two parts.
>
> Indeed, you should read relevant FAQs before writing Web pages too; the
> time you thus save includes your own.
>
> Probably you are using method getYear which AIUI in various systems
> can for current dates return 5, 105, or 2005.
>
> Method getFullYear is available in current browsers (but be careful
> if you are writing for the third world or backwoods colleges). And a
> programmer can construct it from getYear and getTime . But if
> that is the current date, then
> (a) 2000 + getYear()%100 will do for quite a while
> (b) telling the reader the current date is a waste of bandwidth.
>[/color]

The correct answer was posted long before you posted your reply. YOU
need to read the group a little more often before you criticize others
dumbass.
Bozo
Guest
 
Posts: n/a
#17: Jul 23 '05

re: Javascript will not display date correctly in FIREFOX, ok in EXPLORER


On 31.01.2005 07:09, Dr John Stockton wrote:

--- Original Message ---
[color=blue]
> JRS: In article <ctjcju$2261@ripley.netscape.com>, dated Sun, 30 Jan
> 2005 14:30:05, seen in news:comp.lang.javascript, Ed Mullen
> <ed@edmullen.net> posted :[color=green]
>>Dr John Stockton wrote:
>>[color=darkred]
>>> JRS: In article <1106961495.669881.20920@z14g2000cwz.googlegroups. com>,
>>> dated Fri, 28 Jan 2005 17:18:15, seen in news:comp.lang.javascript,
>>> kroger@princeton.edu posted :
>>>
>>>>Hi. I am at a loss to decipher why the javascript on my web page:
>>>>
>>>>http://www.psych.nmsu.edu/~jkroger/lab/index.html
>>>>
>>>>does not display the date correctly in Firefox. Instead of "2005" for
>>>>the year,
>>>>it displays "105" ... however, in IE Explorer, it looks fine.
>>>
>>>
>>> Before posting to a newsgroup, you should read its FAQ; the FAQ for this
>>> group is posted thrice a week, in two parts.[/color]
>>
>>Really? Never seen it here. Perhaps it's sent via an email news feed?[/color]
>
>
> But what do *you* mean by "here"?[/color]

If you know ANYthing about cross-posting then you'd maybe realize that
the poster is reading in a group that has never seen the FAQ or even
heard of it for that matter. You need to learn how to deal with
cross-posting and not be so rude. Maybe even be nice enough to give a
short explanation for the benefit of those that are reading in another
group.
[color=blue]
> If you had read the attribution which you quoted, you would have seen
> exactly what I meant by "here". The signature of that article provided
> a further clue.
>
> Before responding to an article, read it all, including the significant
> header lines and signature; and think about what you have read.
> Remember that the responsibility for your outgoing newsgroups line is
> yours and yours alone.
>[/color]

Take your own advice sometimes.
Richard Cornford
Guest
 
Posts: n/a
#18: Jul 23 '05

re: Javascript will not display date correctly in FIREFOX, ok in EXPLORER


Bozo wrote:
<snip>[color=blue]
> ... . You need to learn how to deal with cross-posting and
> not be so rude. Maybe even be nice enough to give a short
> explanation for the benefit of those that are reading in
> another group.[/color]
<snip>

Maybe that, or maybe just a suitable indicated URL for the online
version of the FAQ in question in a signature.

Richard.


kroger@princeton.edu
Guest
 
Posts: n/a
#19: Jul 23 '05

re: Javascript will not display date correctly in FIREFOX, ok in EXPLORER


John, I appreciate your suggestions re: FAQs. However, I, and many
others, just don't operate like that in my 100 hour work weeks. Some
have opinions about what's right and wrong in usenet (or is it really
Google)? I gave up with that a couple decades ago.

I ask a question in my rush, usually I get help, if not, oh well. If
you feel I (or others) waste your time, then you probably would save
lots of time by not answering. Nonetheless, I appreciate your helpful
response.

Jim

kroger@princeton.edu
Guest
 
Posts: n/a
#20: Jul 23 '05

re: Javascript will not display date correctly in FIREFOX, ok in EXPLORER


Sorry, Dr. John, but I have to respond again..

I just noticed you told me that providing the current date is a waste
of bandwidth.

People don't really take you as seriously as you wish they would, do
they?

Jim

Lee
Guest
 
Posts: n/a
#21: Jul 23 '05

re: Javascript will not display date correctly in FIREFOX, ok in EXPLORER


kroger@princeton.edu said:[color=blue]
>
>John, I appreciate your suggestions re: FAQs. However, I, and many
>others, just don't operate like that in my 100 hour work weeks. Some
>have opinions about what's right and wrong in usenet (or is it really
>Google)? I gave up with that a couple decades ago.
>
>I ask a question in my rush, usually I get help, if not, oh well. If
>you feel I (or others) waste your time, then you probably would save
>lots of time by not answering. Nonetheless, I appreciate your helpful
>response.[/color]

You might get more done in that 100 hour work week, or might even
be able to cut it back a bit, if you learned to do research before
you ask. You usually get the answers much more quickly.

Lee
Guest
 
Posts: n/a
#22: Jul 23 '05

re: Javascript will not display date correctly in FIREFOX, ok in EXPLORER


kroger@princeton.edu said:[color=blue]
>
>Sorry, Dr. John, but I have to respond again..
>
>I just noticed you told me that providing the current date is a waste
>of bandwidth.[/color]

Can you explain why I would want your site to tell me the current date?
It's available in the toolbar of my display, or on the calendar on my
wall.

kroger@princeton.edu
Guest
 
Posts: n/a
#23: Jul 23 '05

re: Javascript will not display date correctly in FIREFOX, ok in EXPLORER


Hm, that's a tough one. I'll have to think about it, and get back to
you.

Thanks,
Jim

McKirahan
Guest
 
Posts: n/a
#24: Jul 23 '05

re: Javascript will not display date correctly in FIREFOX, ok in EXPLORER


"Lee" <REM0VElbspamtrap@cox.net> wrote in message
news:ctmvc902l5t@drn.newsguy.com...[color=blue]
> kroger@princeton.edu said:[color=green]
> >
> >Sorry, Dr. John, but I have to respond again..
> >
> >I just noticed you told me that providing the current date is a waste
> >of bandwidth.[/color]
>
> Can you explain why I would want your site to tell me the current date?
> It's available in the toolbar of my display, or on the calendar on my
> wall.
>[/color]

A few reasons "why":

a) To get the current date on a Windows PC you have to hold your mouse over
the time in the system tray.

b) When the page is printed, the date and time appears on the page even if
Page Setup doesn't.

c) Not everyone has a calendar handy.

Many things waste bandwidth; showing the date is the least of them.


P.S. Jim, I'd put a comma after the day re "Tuesday February 1, 2005".


Lee
Guest
 
Posts: n/a
#25: Jul 23 '05

re: Javascript will not display date correctly in FIREFOX, ok in EXPLORER


McKirahan said:[color=blue]
>
>"Lee" <REM0VElbspamtrap@cox.net> wrote in message
>news:ctmvc902l5t@drn.newsguy.com...[color=green]
>> kroger@princeton.edu said:[color=darkred]
>> >
>> >Sorry, Dr. John, but I have to respond again..
>> >
>> >I just noticed you told me that providing the current date is a waste
>> >of bandwidth.[/color]
>>
>> Can you explain why I would want your site to tell me the current date?
>> It's available in the toolbar of my display, or on the calendar on my
>> wall.
>>[/color]
>
>A few reasons "why":
>
>a) To get the current date on a Windows PC you have to hold your mouse over
>the time in the system tray.
>
>b) When the page is printed, the date and time appears on the page even if
>Page Setup doesn't.
>
>c) Not everyone has a calendar handy.[/color]

The fact that I might not be wearing a watch is not a good reason
to walk up to me and tell me the time.

Your guess that I might not want to bother to lift my arm to look
at it is even less good.

Wouldn't the date that the content was created be more useful than
the date that you happened to print it?



McKirahan
Guest
 
Posts: n/a
#26: Jul 23 '05

re: Javascript will not display date correctly in FIREFOX, ok in EXPLORER


"Lee" <REM0VElbspamtrap@cox.net> wrote in message
news:ctnrgv025m9@drn.newsguy.com...[color=blue]
> McKirahan said:[color=green]
> >
> >"Lee" <REM0VElbspamtrap@cox.net> wrote in message
> >news:ctmvc902l5t@drn.newsguy.com...[color=darkred]
> >> kroger@princeton.edu said:
> >> >
> >> >Sorry, Dr. John, but I have to respond again..
> >> >
> >> >I just noticed you told me that providing the current date is a waste
> >> >of bandwidth.
> >>
> >> Can you explain why I would want your site to tell me the current date?
> >> It's available in the toolbar of my display, or on the calendar on my
> >> wall.
> >>[/color]
> >
> >A few reasons "why":
> >
> >a) To get the current date on a Windows PC you have to hold your mouse[/color][/color]
over[color=blue][color=green]
> >the time in the system tray.
> >
> >b) When the page is printed, the date and time appears on the page even[/color][/color]
if[color=blue][color=green]
> >Page Setup doesn't.
> >
> >c) Not everyone has a calendar handy.[/color]
>
> The fact that I might not be wearing a watch is not a good reason
> to walk up to me and tell me the time.[/color]

So anything thing that appears on a Web page is equivalent to walking up to
you and telling you; excellent logic.
[color=blue]
> Your guess that I might not want to bother to lift my arm to look
> at it is even less good.[/color]

Since you might "not be wearing a watch", what will you be lifting your arm
to look at it?
[color=blue]
> Wouldn't the date that the content was created be more useful than
> the date that you happened to print it?[/color]

Useful to whom?


All I suggested was that a "few reasons why" existed.

Whether or not you agree with any of them is immaterial.


Talk about wasting bandwidth ...




Lee
Guest
 
Posts: n/a
#27: Jul 23 '05

re: Javascript will not display date correctly in FIREFOX, ok in EXPLORER


McKirahan said:[color=blue]
>
>"Lee" <REM0VElbspamtrap@cox.net> wrote in message
>news:ctnrgv025m9@drn.newsguy.com...[color=green]
>> McKirahan said:[color=darkred]
>> >
>> >"Lee" <REM0VElbspamtrap@cox.net> wrote in message
>> >news:ctmvc902l5t@drn.newsguy.com...
>> >> kroger@princeton.edu said:
>> >> >
>> >> >Sorry, Dr. John, but I have to respond again..
>> >> >
>> >> >I just noticed you told me that providing the current date is a waste
>> >> >of bandwidth.
>> >>
>> >> Can you explain why I would want your site to tell me the current date?
>> >> It's available in the toolbar of my display, or on the calendar on my
>> >> wall.
>> >>
>> >
>> >A few reasons "why":
>> >
>> >a) To get the current date on a Windows PC you have to hold your mouse[/color][/color]
>over[color=green][color=darkred]
>> >the time in the system tray.
>> >
>> >b) When the page is printed, the date and time appears on the page even[/color][/color]
>if[color=green][color=darkred]
>> >Page Setup doesn't.
>> >
>> >c) Not everyone has a calendar handy.[/color]
>>
>> The fact that I might not be wearing a watch is not a good reason
>> to walk up to me and tell me the time.[/color]
>
>So anything thing that appears on a Web page is equivalent to walking up to
>you and telling you; excellent logic.[/color]

The analogy that you seemed to miss concerns providing
unsolicited, irrelevant information.

[color=blue][color=green]
>> Your guess that I might not want to bother to lift my arm to look
>> at it is even less good.[/color]
>
>Since you might "not be wearing a watch", what will you be lifting your arm
>to look at it?[/color]

Reconsider the meaning of the words "might not".

[color=blue][color=green]
>> Wouldn't the date that the content was created be more useful than
>> the date that you happened to print it?[/color]
>
>Useful to whom?[/color]

Um, anybody?

[color=blue]
>All I suggested was that a "few reasons why" existed.
>
>Whether or not you agree with any of them is immaterial.
>
>
>Talk about wasting bandwidth ...[/color]

I had intended it as a discussion of design practice. It's only
the attitude that any opinions other than yours are "immaterial"
that may make it a waste of bandwidth.

Mark Preston
Guest
 
Posts: n/a
#28: Jul 23 '05

re: Javascript will not display date correctly in FIREFOX, ok in EXPLORER


Bozo wrote:
[color=blue]
> If you know ANYthing about cross-posting then you'd maybe realize that
> the poster is reading in a group that has never seen the FAQ or even
> heard of it for that matter. You need to learn how to deal with
> cross-posting and not be so rude. Maybe even be nice enough to give a
> short explanation for the benefit of those that are reading in another
> group.
>[/color]
John's point was that the address to find the FAQ, the group to which
the FAQ applies, the group *from* which John was posting and the subject
at hand were *all* included in his reply.

I'm afraid it is up to the OP to read the damn replies and be
responsible for his own posting - not for John to try and second-guess
his actual intentions. John's reply was concise, clear, informative,
with full references and every possible detail that could have been
asked for.
Mark Preston
Guest
 
Posts: n/a
#29: Jul 23 '05

re: Javascript will not display date correctly in FIREFOX, ok in EXPLORER


McKirahan wrote:
[color=blue]
> "Lee" <REM0VElbspamtrap@cox.net> wrote in message
> news:ctmvc902l5t@drn.newsguy.com...
>[color=green]
>>kroger@princeton.edu said:
>>[color=darkred]
>>>Sorry, Dr. John, but I have to respond again..
>>>
>>>I just noticed you told me that providing the current date is a waste
>>>of bandwidth.[/color]
>>
>>Can you explain why I would want your site to tell me the current date?
>>It's available in the toolbar of my display, or on the calendar on my
>>wall.[/color]
>
> A few reasons "why":
>
> a) To get the current date on a Windows PC you have to hold your mouse over
> the time in the system tray.
>[/color]
But at least it *is* the date. There is no guarantee that the website is
even in my date-zone, never mind my time-zone, so it might be quite
wrong for me.
[color=blue]
> b) When the page is printed, the date and time appears on the page even if
> Page Setup doesn't.
>[/color]
It is up to me what gets printed on my pages. If I choose date (and
time) I get the date and time it is printed on. If I get it from the
website, I most likely do not - I get what time it is
*where_the_web_server_is*, not where I is :)
[color=blue]
> c) Not everyone has a calendar handy.
>[/color]
If they don't, it is easy enough to get one and more reliable than using
someone else's computer somewhere else in the world.
McKirahan
Guest
 
Posts: n/a
#30: Jul 23 '05

re: Javascript will not display date correctly in FIREFOX, ok in EXPLORER


"Mark Preston" <usenet@nosource.co.uk> wrote in message
news:cto8vd$j7d$1$830fa795@news.demon.co.uk...

[snip]
[color=blue][color=green]
> > A few reasons "why":
> >
> > a) To get the current date on a Windows PC you have to hold your mouse[/color][/color]
over[color=blue][color=green]
> > the time in the system tray.
> >[/color]
> But at least it *is* the date. There is no guarantee that the website is
> even in my date-zone, never mind my time-zone, so it might be quite
> wrong for me.[color=green]
> >
> > b) When the page is printed, the date and time appears on the page even[/color][/color]
if[color=blue][color=green]
> > Page Setup doesn't.
> >[/color]
> It is up to me what gets printed on my pages. If I choose date (and
> time) I get the date and time it is printed on. If I get it from the
> website, I most likely do not - I get what time it is
> *where_the_web_server_is*, not where I is :)
>[color=green]
> > c) Not everyone has a calendar handy.
> >[/color]
> If they don't, it is easy enough to get one and more reliable than using
> someone else's computer somewhere else in the world.[/color]

This is client-side JavaScript!

You see that date and time of your computer when viewing the page.


Dr John Stockton
Guest
 
Posts: n/a
#31: Jul 23 '05

re: Javascript will not display date correctly in FIREFOX, ok in EXPLORER


JRS: In article <cto8vd$j7d$1$830fa795@news.demon.co.uk>, dated Tue, 1
Feb 2005 16:01:15, seen in news:comp.lang.javascript, Mark Preston
<usenet@nosource.co.uk> posted :
[color=blue][color=green]
>> a) To get the current date on a Windows PC you have to hold your mouse over
>> the time in the system tray.
>>[/color]
>But at least it *is* the date. There is no guarantee that the website is
>even in my date-zone, never mind my time-zone, so it might be quite
>wrong for me.[/color]


Javascript does not know where the website, by which I suppose you mean
the server, is.

The date and time that it will show will be the current date and time,
either GMT/UTC or local, as the client computer has it - provided that
the programmers have not made any silly errors such as displaying in FFF
outside FFF-land, using uncorrected getYear, etc.

However, we do know that neither the web-site programmer nor the browser
programmer is really to be trusted; for example, IE4 & IE6 (as
delivered) get the Week Number wrong for three days every 28 years, as
shown in <URL:http://www.merlyn.demon.co.uk/vb-dates.htm>.

The real folly lies in the presumption that the user wants to be told
the date that his computer is set to (except for pages that use that
information, naturally).

<FAQENTRY> Never do something unrequested on a Web page - fancy
background, showing date and/or time, etc., unless there is reason to
expect it to be beneficial to the typical reader. </FAQENTRY>

--
© 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.
kroger@princeton.edu
Guest
 
Posts: n/a
#32: Jul 23 '05

re: Javascript will not display date correctly in FIREFOX, ok in EXPLORER


Probably, but it would also let people see how lazy I am.
"Last updated, March 23, 1923...."


Jim

Mark Preston
Guest
 
Posts: n/a
#33: Jul 23 '05

re: Javascript will not display date correctly in FIREFOX, ok in EXPLORER


Dr John Stockton wrote:[color=blue]
> JRS: In article <cto8vd$j7d$1$830fa795@news.demon.co.uk>, dated Tue, 1
> Feb 2005 16:01:15, seen in news:comp.lang.javascript, Mark Preston
> <usenet@nosource.co.uk> posted :
>[color=green][color=darkred]
>>>a) To get the current date on a Windows PC you have to hold your mouse over
>>>the time in the system tray.
>>>[/color]
>>But at least it *is* the date. There is no guarantee that the website is
>>even in my date-zone, never mind my time-zone, so it might be quite
>>wrong for me.[/color]
>
> Javascript does not know where the website, by which I suppose you mean
> the server, is.
>[/color]
Does if its server-side Javascript. My bad - didn't read the OP.
Luciano Lipari
Guest
 
Posts: n/a
#34: Jul 23 '05

re: Javascript will not display date correctly in FIREFOX, ok in EXPLORER


Hi Richard. My name is Luciano from Aries Systems. I sent you a couple
of emails asking for permission to use your javascript scrolling
datagrid in our web application. I'm assuming I was filtered out as
spam. We we're very impressed with your work on the grid. We would be
sure to mention you everywhere your script is used. Could you please
send me an email with your response? Thank you.

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Luciano Lipari
Guest
 
Posts: n/a
#35: Jul 23 '05

re: Javascript will not display date correctly in FIREFOX, ok in EXPLORER


Hi Richard. My name is Luciano from Aries Systems. I sent you a couple
of emails asking for permission to use your javascript scrolling
datagrid in our web application. I'm assuming I was filtered out as
spam. We we're very impressed with your work on the grid. We would be
sure to mention you everywhere your script is used. Could you please
send me an email with your response? Thank you.

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Closed Thread