Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #12107
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail |
|---|---|
| From | " Cal Who" <CalWhoNOSPAM@roadrunner.com> |
| Newsgroups | comp.lang.javascript |
| Subject | Re: How to write a browser based timer |
| Date | Thu, 23 Feb 2012 10:23:01 -0500 |
| Organization | A noiseless patient Spider |
| Lines | 42 |
| Message-ID | <ji5lko$7uj$1@dont-email.me> (permalink) |
| References | <ji101v$3ra$1@dont-email.me> <a44b4295-4c38-40c3-bc86-f63bd24d7720@b23g2000yqn.googlegroups.com> |
| Injection-Date | Thu, 23 Feb 2012 15:23:04 +0000 (UTC) |
| Injection-Info | mx04.eternal-september.org; posting-host="6QdyZNshdkPWUahAcgOWyg"; logging-data="8147"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+FI/4Qswqd4U4loWGSKY2w" |
| X-MimeOLE | Produced By Microsoft MimeOLE V6.00.2900.6157 |
| X-RFC2646 | Format=Flowed; Original |
| X-Newsreader | Microsoft Outlook Express 6.00.2900.5931 |
| Cancel-Lock | sha1:c6QIlEnILPtMRgxr7xEaPBx4+qs= |
| X-Priority | 3 |
| X-MSMail-Priority | Normal |
| Xref | x330-a1.tempe.blueboxinc.net comp.lang.javascript:12107 |
Show key headers only | View raw
"Scott Sauyet" <scott.sauyet@gmail.com> wrote in message news:a44b4295-4c38-40c3-bc86-f63bd24d7720@b23g2000yqn.googlegroups.com... >" Cal Who" wrote: >> I need to know what to read about. >> >> I want to write a browser based timer such that when one presses some key >> it >> starts incrementing and pressing another key pauses it. >> [ ... ] >> >> What I need to know is what would be an appreciated language to study. >> >> Is Javascript the way to go? > > I assume you mean "appropriate language". Yes - must be I wasn't careful with the spell checker. You know what in your note below was most helpful? The word "stopwatch"! Somehow when I checked before posting that did not occur to me so I missed the most appropriate hits. Thanks > > You can certainly do what you want with Javascript. And it shouldn't > be difficult. > > You need to look at three features of Javascript: > > - Keyboard Events, to listen for the keystrokes that matter > - setTimeout or setInterval to occasionally check the time > - DOM manipulation to display the results > > Alternately, you can probably search the web for Javascript stopwatch > implementations and find one that either does exactly what you want or > could easily be modified to do so. > > -- Scott
Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
How to write a browser based timer " Cal Who" <CalWhoNOSPAM@roadrunner.com> - 2012-02-21 15:50 -0500
Re: How to write a browser based timer Scott Sauyet <scott.sauyet@gmail.com> - 2012-02-21 13:04 -0800
Re: How to write a browser based timer Gene Wirchenko <genew@ocis.net> - 2012-02-21 13:45 -0800
Re: How to write a browser based timer "Evertjan." <exjxw.hannivoort@interxnl.net> - 2012-02-21 22:40 +0000
Re: How to write a browser based timer Gene Wirchenko <genew@ocis.net> - 2012-02-21 15:04 -0800
Re: How to write a browser based timer "Evertjan." <exjxw.hannivoort@interxnl.net> - 2012-02-21 23:27 +0000
Re: How to write a browser based timer Gene Wirchenko <genew@ocis.net> - 2012-02-21 16:08 -0800
Re: How to write a browser based timer "Evertjan." <exjxw.hannivoort@interxnl.net> - 2012-02-22 15:41 +0000
Re: How to write a browser based timer Gene Wirchenko <genew@ocis.net> - 2012-02-22 09:19 -0800
Re: How to write a browser based timer "Evertjan." <exjxw.hannivoort@interxnl.net> - 2012-02-22 21:55 +0000
Re: How to write a browser based timer Gene Wirchenko <genew@ocis.net> - 2012-02-22 15:01 -0800
Re: How to write a browser based timer RobG <rgqld@iinet.net.au> - 2012-02-21 18:18 -0800
Re: How to write a browser based timer Dr J R Stockton <reply1208@merlyn.demon.co.uk> - 2012-02-23 19:31 +0000
Re: How to write a browser based timer Gene Wirchenko <genew@ocis.net> - 2012-02-23 16:38 -0800
Re: How to write a browser based timer Dr J R Stockton <reply1208@merlyn.demon.co.uk> - 2012-02-25 20:29 +0000
Re: How to write a browser based timer "Evertjan." <exjxw.hannivoort@interxnl.net> - 2012-02-26 23:02 +0000
Re: How to write a browser based timer Dr J R Stockton <jrs@merlyn.demon.co.uk> - 2012-02-22 18:51 +0000
Re: How to write a browser based timer " Cal Who" <CalWhoNOSPAM@roadrunner.com> - 2012-02-23 10:23 -0500
Re: How to write a browser based timer Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-02-23 22:13 +0100
Re: How to write a browser based timer Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-02-24 09:41 +0100
csiph-web