Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #12556
| From | Dr J R Stockton <reply1210@merlyn.demon.co.uk> |
|---|---|
| Newsgroups | comp.lang.javascript |
| Subject | Re: Fancy Date Entry |
| Date | 2012-03-09 21:18 +0000 |
| Organization | Home |
| Message-ID | <mkRmgOEkOnWPFwAY@invalid.uk.co.demon.merlyn.invalid> (permalink) |
| References | <2n7gl7pfgu7mni1bj6cvluit67cnve4ge8@4ax.com> |
In comp.lang.javascript message <2n7gl7pfgu7mni1bj6cvluit67cnve4ge8@4ax. com>, Wed, 7 Mar 2012 19:02:44, Gene Wirchenko <genew@ocis.net> posted: > > Note that only the part of the date that needs to be entered was >entered. Most transactions in this system are in the same month. If >I can have it so that only the day of the month needs to be entered >while allowing a full date to be entered, should that be needed, I >will be happy. Typing into a field which does not accrue characters in the usual manner seems likely to lead to confusion. You probably need to prevent, or consider, mouse actions in the field. Instead, why not type into an initially empty field, which accepts what is typed in the usual fashion, and have above it a readonly field which displays the date currently indicated. At each keystroke, and perhaps at each mouse action - or alternatively every 25 milliseconds - read the input string, apply it by your algorithm to the default date, and show that in the readonly field, which is what will be used when submitted. It would be possible, and might be useful, to change the colour of the readonly field when, as is, it represents an invalid date - either because it is non-Gregorian or because it is outside the range that the application should accept. -- (c) John Stockton, nr London, UK. ?@merlyn.demon.co.uk Turnpike v6.05. Website <http://www.merlyn.demon.co.uk/> - w. FAQish topics, links, acronyms PAS EXE etc. : <http://www.merlyn.demon.co.uk/programs/> - see in 00index.htm Dates - miscdate.htm estrdate.htm js-dates.htm pas-time.htm critdate.htm etc.
Back to comp.lang.javascript | Previous | Next — Previous in thread | Find similar | Unroll thread
Fancy Date Entry Gene Wirchenko <genew@ocis.net> - 2012-03-07 19:02 -0800
Re: Fancy Date Entry "Evertjan." <exjxw.hannivoort@interxnl.net> - 2012-03-08 23:23 +0000
Re: Fancy Date Entry Gene Wirchenko <genew@ocis.net> - 2012-03-08 19:32 -0800
Re: Fancy Date Entry "Evertjan." <exjxw.hannivoort@interxnl.net> - 2012-03-09 08:09 +0000
Re: Fancy Date Entry Dr J R Stockton <reply1210@merlyn.demon.co.uk> - 2012-03-09 21:18 +0000
csiph-web