Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #18116
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail |
|---|---|
| From | "Tony Johansson" <johansson.andersson@telia.com> |
| Newsgroups | comp.lang.javascript |
| Subject | Want to construct a function instead of the code for onkeyup |
| Date | Wed, 16 Jan 2013 22:51:53 +0100 |
| Organization | A noiseless patient Spider |
| Lines | 10 |
| Message-ID | <kd77dq$tph$1@dont-email.me> (permalink) |
| Mime-Version | 1.0 |
| Content-Type | text/plain; format=flowed; charset="iso-8859-1"; reply-type=original |
| Content-Transfer-Encoding | 7bit |
| Injection-Date | Wed, 16 Jan 2013 21:51:54 +0000 (UTC) |
| Injection-Info | mx04.eternal-september.org; posting-host="8fdc2b5af81c338deb7045fc6c39b0e2"; logging-data="30513"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19VMNtxdPGiJp5OfMAmF38s" |
| X-MimeOLE | Produced By Microsoft MimeOLE V6.0.6002.18463 |
| X-Newsreader | Microsoft Windows Mail 6.0.6002.18197 |
| Cancel-Lock | sha1:TEtncbuKjc8LYcTfYot/9RFOPXw= |
| X-Priority | 3 |
| X-MSMail-Priority | Normal |
| Xref | csiph.com comp.lang.javascript:18116 |
Show key headers only | View raw
Hello! How should I write a function if I want to move the code that is executed for onkeyup ? <input type="text" name="depthBow" id="txtDepthBow" size="20" onkeyup="if (/[^0-9\.,]/g.test(this.value)) this.value = this.value.replace(/[^0-9\.,]/g,'')" /> //Tony
Back to comp.lang.javascript | Previous | Next — Next in thread | Find similar | Unroll thread
Want to construct a function instead of the code for onkeyup "Tony Johansson" <johansson.andersson@telia.com> - 2013-01-16 22:51 +0100
Re: Want to construct a function instead of the code for onkeyup Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-01-16 23:29 +0100
Re: Want to construct a function instead of the code for onkeyup "Tony" <tony.johansson@inport.com> - 2013-01-17 09:10 +0100
Re: Want to construct a function instead of the code for onkeyup "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2013-01-17 15:40 +0100
Re: Want to construct a function instead of the code for onkeyup "Tony" <tony.johansson@inport.com> - 2013-01-17 09:23 +0100
csiph-web