JRS: In article <cbazc.49050$Sw.48757@attbi_s51>, seen in
news:comp.lang.javascript, Michael <mi**@mike.com> posted at Mon, 14 Jun
2004 04:53:28 :
A question can be answered in a tone that any receiver can feel as though
they are being helped. In this case he came across not as helpful but
condescending.
I do not argue semantics but "...when I use this script.... Is it
possible?", is a statement that implies that I was talking about still using
the script, but just displaying it counting down. If I needed to be more
clear he could have replied as such with conversational English...
"Lee" <RE**************@cox.net> wrote in message
...
Responses should go after trimmed quotes; evidently you have not yet
managed to study the newsgroup FAQ adequately.
If you post here, you need to realise that you are likely to be answered
in English. That is a language developed in my country; one which is
capable of exact expression (particularly when used by Dutch & Danes).
It is not, however, the American language, and you must learn to get
used to the difference (I suppose you are a Murican; your post gives no
positive indication, but most who are not choose to show that they are
not) in style.
The code that you posted cannot be used to give the desired effect; it
has a grammatical error due to your carelessness in posting. You have
allowed your posting agent to introduce a line break, which falls within
a string. When code is posted, it is for the poster to see that it will
be transmitted in executable form; your readers should not have to waste
time in sorting out superfluous adventitious deficiencies.
The code that you apparently tried is inadequate to give the desired
effect. It declares variables and functions, but calls for no
perceptible action.
If function Start is actually called, function UpdateTimer is (for no
obvious reason) called nearly once per second; and after 20 minutes it
attempts to open a window showing page /timeout.htm whatever that may
be. It is pointless to test with 20 minutes when 3 seconds will
obviously exercise all the code. Changing /timeout.htm to the name of a
page that I have, it does get loaded. (BTW, it would be slightly more
efficient to calculate the finish time only once, in function Start.)
But to display the time counting down on a Web page (well, you cannot,
since the time always increases; but I suppose you mean the interval
remaining until some future event), you either can follow the advice
previously given; or you can throw away most of your existing code and
ask again, stating your wishes more appropriately.
The task smells of being a piece set as coursework by a mediocre
educational institution.
--
© John Stockton, Surrey, UK. ??*@merlyn.demon.co.uk Turnpike v4.00 MIME. ©
Web <URL:http://www.merlyn.demon.co.uk/> - FAQish topics, acronyms, & links.
Check boilerplate spelling -- error is a public sign of incompetence.
Never fully trust an article from a poster who gives no full real name.