In comp.lang.javas cript message <11************ *********@m36g2 000hse.goo
glegroups.com>, Sat, 26 May 2007 10:31:19, Alfred <99*@myway.co m>
posted:
>I need a calendar + time picker tool that is:
* public domain
* non-AJAX (at this time)
* javascript
* works in IE 6 and Firefox 1.5 and up
* div-based
* uses CSS too
* permits not just picking a date from the calendar and switching
months, years backwards and forwards, but also pick the time
* fairly condensed code as much as possible
Anyone using one?
Unless there is a good probability of predicting what will be chosen,
the fastest date/time entry, for the user, will be like
<div class=D>Enter date and time as YYYY MM DD hh mm ss :
<input class=X type=text Name=N size=20></div>
followed by validation, for which see below. Use RegExp
/(\d{1,4})\D+(\d \d?)\D+(\d\d?)\ D+(\d\d?)\D+(\d \d?)\D+(\d\d?)\ D+/ for
maximum flexibility compatible with ISO field order. Consider how a
Year of two or fewer digits should be interpreted; for certainty, insist
on at least four digits there. You could make the later digit fields
optional, if choosing to the second is not mandatory.
It's a good idea to read the newsgroup c.l.j and its FAQ. See below.
--
(c) John Stockton, Surrey, UK. ?@merlyn.demon. co.uk Turnpike v6.05 IE 6
news:comp.lang. javascript FAQ <URL:http://www.jibbering.c om/faq/index.html>.
<URL:http://www.merlyn.demo n.co.uk/js-index.htmjscr maths, dates, sources.
<URL:http://www.merlyn.demo n.co.uk/TP/BP/Delphi/jscr/&c, FAQ items, links.