logo

Response

« Return to the main article

You are viewing this page out of context. To see it in the context it is intended please click here.

About This Page

Reply posted by Stan Rogers on Thu 3 Oct 2002 in response to Form Validator R2.0

Re: Date Validation

Until hard typing comes along for HTML fields, that's the way it works on the
web. If you want to validate the values as date/time, then you need to create
Date objects in JavaScript from the text values held in the HTML fields. If you
check your HTML forms carefully, you'll see that all single-value "keyboard
entry" fields are text fields -- they can be type converted in JavaScript
(often implicitly rather than by casting methods) and will be converted to
Notes data types on submit.