[thelist] js form validation?
jon steele
jjsteele22 at yahoo.com
Wed Sep 26 16:06:25 CDT 2001
Hi Adam,
Everything seems ok. Just use this format for all the required fields:
if (!validRequired(theForm.FieldName,"Textual Field Name"))
return false;
And add them all to the ValidateForm(theform) function.
Also, remember that the name attribute of your <input> tags cannot
contain spaces. Javascript cannot access the input's which have spaces
in their names. Use _ for spaces if you need readability on the form
mailer.
HTH
Jon
--- Adam <adam at hallinteractive.com> wrote:
> hello !
>
> I need serious javascript help! In order to save the costs of having
> cgi
> written for us my boss has got me attempting form validation for a
> mailto
> form with JS! only problem is I've never done one before!?
> I did find a relatively simple script that I'm "muddling" trough but
> I can't
> figure out what the action is for when the validation is in the
> <head>. The
> action is directly from the original script. Here's what I've got so
> far,
> I've only figured out that there is a function for the required
> fields and a
> function to validate numbers and one for email. What's next? is there
> anyone
> who can help? anywhere I can get a solid quick tutorial?
> Here's the form in all it's screwed up glory...
>
> <-- http://www.hall-assoc.com/clients/gox/goonform2.htm -->
>
> thx for any help you can give!!
>
>
>
>
> ---------------------------------------
> For unsubscribe and other options, including
> the Tip Harvester and archive of TheList go to:
> http://lists.evolt.org Workers of the Web, evolt !
__________________________________________________
Do You Yahoo!?
Get email alerts & NEW webcam video instant messaging with Yahoo! Messenger. http://im.yahoo.com
More information about the thelist
mailing list