Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #7790

Re: delete vs period

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!feeder.news-service.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From Eric Bednarz <bednarz@fahr-zur-hoelle.org>
Newsgroups comp.lang.javascript
Subject Re: delete vs period
Date Fri, 28 Oct 2011 17:57:52 +0200
Organization Eric Conspiracy Secret Labs
Lines 11
Message-ID <m2bot1f6rj.fsf@nntp.bednarz.nl> (permalink)
References <0pela7hpbnnkafvdis9mgk1f86vete3oo5@4ax.com>
Reply-To ebednarz@gmx.net
Mime-Version 1.0
Content-Type text/plain; charset=utf-8
Content-Transfer-Encoding 8bit
X-Trace individual.net GWDI+MgZerMuOlQXPg9NIw8Vf7HWbGKnqKx/MJVJmWx+e8K/lY
Cancel-Lock sha1:Z/0o2BIgKbDEkPuxOEtDXcEci7A= sha1:eMW0ZSXJjme46ciIIAdGHcIviBk=
X-Eric-Conspiracy There is no conspiracy
User-Agent Gnus/5.11 (Gnus v5.11) Emacs/22.3 (darwin)
Xref x330-a1.tempe.blueboxinc.net comp.lang.javascript:7790

Show key headers only | View raw


Tim Slattery <Slattery_T@bls.gov> writes:

> I'm trying to make a text input field accept only digits and period,

So manipulate the value of the field when the keypress event fires.

That also protects you from crippling the user interface; on OS X I use
ctrl+d for delete; incidentally, my keyboard doesn't have a delete key.

-- 
λ

Back to comp.lang.javascript | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

delete vs period Tim Slattery <Slattery_T@bls.gov> - 2011-10-28 10:30 -0400
  Re: delete vs period Swifty <steve.j.swift@gmail.com> - 2011-10-28 16:24 +0100
  Re: delete vs period Eric Bednarz <bednarz@fahr-zur-hoelle.org> - 2011-10-28 17:57 +0200
  Re: delete vs period Tim Slattery <Slattery_T@bls.gov> - 2011-10-28 12:28 -0400
  Re: delete vs period Antony Scriven <adscriven@gmail.com> - 2011-10-28 09:27 -0700
    Re: delete vs period Dr J R Stockton <reply1143@merlyn.demon.co.uk> - 2011-10-29 20:55 +0100

csiph-web