This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Web Authoring Tools > January 2005 > Javascript will not display date correctly in FIREFOX, ok in EXPLORER





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Javascript will not display date correctly in FIREFOX, ok in EXPLORER
Dr John Stockton

2005-01-30, 7:19 pm

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.

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.
Michael Winter

2005-01-30, 7:19 pm

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

[Auto-posted FAQ]

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


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.
Christopher Jahn

2005-01-30, 7:19 pm

Ed Mullen <ed@edmullen.net> wrote in
news:ctjcju$2261@ripley.netscape.com:

> Dr John Stockton wrote:
>
> Really? Never seen it here. Perhaps it's sent via an email news
> feed?


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

2005-01-30, 7:20 pm

Ed Mullen wrote:
> Michael Winter wrote:

<snip>
<snip>[color=darkred]
> 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/netscap...mozilla.general using
> Mozilla Suite Mail/News. I see messages here going back to
> 11/13/2004 and there's no FAQ among them.


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.


David Biddulph

2005-01-30, 7:20 pm

"Ed Mullen" <ed@edmullen.net> wrote in message
news:ctjflp$se71@ripley.netscape.com...
> Michael Winter wrote:
[color=darkred]
[color=darkred]
....[color=darkred]
[color=darkred]
> 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/netscap...mozilla.general using Mozilla
> Suite Mail/News. I see messages here going back to 11/13/2004 and there's
> no FAQ among them.


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


Dr John Stockton

2005-01-31, 7:32 pm

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 :
>Dr John Stockton wrote:
>
>
>Really? Never seen it here. Perhaps it's sent via an email news feed?



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.
Richard Cornford

2005-01-31, 11:19 pm

Bozo wrote:
<snip>
> ... . 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.

<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

2005-01-31, 11:19 pm

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

2005-01-31, 11:19 pm

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

Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews