Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #11179
| From | Dr J R Stockton <reply1205@merlyn.demon.co.uk> |
|---|---|
| Newsgroups | comp.lang.javascript |
| Subject | Re: event question for a time input field |
| Date | 2012-02-03 21:46 +0000 |
| Organization | Home |
| Message-ID | <8m7AAEE6WFLPFwKJ@invalid.uk.co.demon.merlyn.invalid> (permalink) |
| References | <085b2fe7-5c2f-467c-86cc-ffa45eaf2355@og8g2000pbb.googlegroups.com> |
In comp.lang.javascript message <085b2fe7-5c2f-467c-86cc-ffa45eaf2355@og 8g2000pbb.googlegroups.com>, Thu, 2 Feb 2012 10:46:17, JRough <janis.rough@gmail.com> posted: >I have a datefield with a YUI calendar object drop down with a >customized time field that is displayed at the bottom of the >calendar. The time field is just an input field that allows the user >to change the time and then a submit button with code that filters the >data based on the date and time of day. This is a waste of time, because it will be quicker and easier to insert the numeric date and time from a standard keyboard into a single text field. If you are explicitly rigorous about the field order, you can be liberal about the separators, allowing spaces to separate fields. If your users may not have keyboards, code one with a dozen or so buttons. Validate the pattern with a RegExp match, and validate the values by read-back from a Date Object. If validation fails, allow the input line to be edited; do not force full re-entry. -- (c) John Stockton, nr London UK ?@merlyn.demon.co.uk IE8 FF8 Op11 Sf5 Cr15 news:comp.lang.javascript FAQ <http://www.jibbering.com/faq/index.html>. <http://www.merlyn.demon.co.uk/js-index.htm> jscr maths, dates, sources. <http://www.merlyn.demon.co.uk/> TP/BP/Delphi/jscr/&c, FAQ items, links.
Back to comp.lang.javascript | Previous | Next — Previous in thread | Find similar | Unroll thread
event question for a time input field JRough <janis.rough@gmail.com> - 2012-02-02 10:46 -0800 Re: event question for a time input field Erwin Moller <erwinmollerusenet@xs4all.nl> - 2012-02-02 23:27 +0100 Re: event question for a time input field Dr J R Stockton <reply1205@merlyn.demon.co.uk> - 2012-02-03 21:46 +0000
csiph-web