Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail From: Dr J R Stockton Newsgroups: comp.lang.javascript Subject: Re: delete vs period Date: Sat, 29 Oct 2011 20:55:55 +0100 Organization: Home Lines: 26 Message-ID: References: <0pela7hpbnnkafvdis9mgk1f86vete3oo5@4ax.com> <7fdedd50-754e-491c-842e-baea1de726cd@4g2000yqu.googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain;charset=us-ascii Injection-Info: mx04.eternal-september.org; posting-host="UwYDIHu13GPq28RciNoAJA"; logging-data="2314"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/NSA3CwWpFON6G4ghdoVjCmyxEwD3gvG4=" User-Agent: Turnpike/6.05-S () Cancel-Lock: sha1:5I2sPDvxchf3VZESKHh1yJokUT0= Xref: x330-a1.tempe.blueboxinc.net comp.lang.javascript:7816 In comp.lang.javascript message <7fdedd50-754e-491c-842e-baea1de726cd@4g 2000yqu.googlegroups.com>, Fri, 28 Oct 2011 09:27:31, Antony Scriven posted: >It sounds like you're using onkeypress. Try onkeydown >instead. Alternatively you could let the user input whatever >they like, but display an error if they try to submit the >form (if that's the scenario). That's easier. --Antony It depends a little on the application. A professional data entry clerk may like to have characters typed in one by one and immediately checked for acceptability. That, implemented literally, would not help those who enter with copy'n'paste or drag'n'drop. Sometimes, users really benefit from being able to copy anything into the field, and then editing until right, then signifying completion, at which stage validation can be appropriate. -- (c) John Stockton, nr London UK. ?@merlyn.demon.co.uk BP7, Delphi 3 & 2006. TP/BP/Delphi/&c., FAQqy topics & links; clpdmFAQ; NOT : news:borland.* Guidelines