JRS: In article <10**********************@k17g2000odb.googlegroups .com>
, dated Wed, 29 Sep 2004 20:40:25, seen in news:comp.lang.javascript,
ma**********@hotmail.com posted :
i need some creative input. i'm trying to enable the user to input a
length of time, from one day to about 10 years. ideas i've had have
been:
- 3 pull down boxes, for days, months, years
-an entry box for a value and a pull down box for units (days, weeks,
months, years)
- a scroll bar to slide along to a corresponding time
That depends on the accuracy required, on the type of person entering
the data, and on the conventions of the field.
For a data-entry clerk entering such data frequently, use space-
separated numbers for Y M D; if not all possible sub-fields may be
present, use suffix letters as in 152w or 3y.
For a Boss, stating policy infrequently, you could well use something
slower, to make time to think. If the lengths of time are drawn from a
conventional set such as 1d 2d 3d 1w 2w 1m 2m 3m 6m 1y 2y 5y 10y, then a
slider indexing an array of values might serve.
Pull-down boxes are slow; and there is the question of the number of
days in a month.
If best accuracy of duration is needed, you can use only days and weeks;
years are almost as good.
--
© John Stockton, Surrey, UK. ?@merlyn.demon.co.uk Turnpike v4.00 IE 4 ©
<URL:http://www.jibbering.com/faq/> JL/RC: FAQ of news:comp.lang.javascript
<URL:http://www.merlyn.demon.co.uk/js-index.htm> jscr maths, dates, sources.
<URL:http://www.merlyn.demon.co.uk/> TP/BP/Delphi/jscr/&c, FAQ items, links.