- From: Ian Hickson <ian@hixie.ch>
- Date: Tue, 15 Aug 2006 00:23:34 +0000 (UTC)
On Tue, 14 Feb 2006, Ric Hardacre wrote: > > yes that's exactly the use i can foresee, i have this problem in an app > I'm working on currently, we can either use onChange or onKeyPress to > activate the totalizing function for a series of quantity and length > boxes. (e.g. 12 at 4 meters, 8 at 3 meters, the total being the total > metreage). neither event is entirely satisfactory, onChange only happens > when the text box looses focus (which is not the usual behavior in > standard windows apps and has been brought up in client consultation ass > "odd") and onkeypress would be overkill IMO and would also yield > intermediate invalid results. e.g. if an input is changed from 8 to 12 > the initial "1" of 12 would cause the total to go out of whack. > > so a good implementation of onInput would occur after onKeyPress and > before onChanged and would be sensitive to the user's computer's > typematic delay. That's exactly teh intention, yes. -- Ian Hickson U+1047E )\._.,--....,'``. fL http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,. Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.'
Received on Monday, 14 August 2006 17:23:34 UTC