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


Groups > comp.lang.javascript > #7790

Re: delete vs period

From Eric Bednarz <bednarz@fahr-zur-hoelle.org>
Newsgroups comp.lang.javascript
Subject Re: delete vs period
Date 2011-10-28 17:57 +0200
Organization Eric Conspiracy Secret Labs
Message-ID <m2bot1f6rj.fsf@nntp.bednarz.nl> (permalink)
References <0pela7hpbnnkafvdis9mgk1f86vete3oo5@4ax.com>

Show all headers | 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