Kryptronic Software Support Forum

You are viewing this forum as a guest. Login to an existing account, or create a new account, to reply to topics and to create new topics.

#1 05-10-2006 19:07:52

cybermed
Member
From: Burke Va - US
Registered: 09-06-2001
Posts: 54
Website

Form Validation

We addad a form at the left of   .  The form works OK except the validation.  If you hit Enter without entering a name and email the form still goes thru. The validation works OK when its not a part of the template, but when added to ste_layout.txt the validation does not work.  Any suggestions?  THANKS!!! 

Offline

 

#2 05-10-2006 19:33:39

rachaelseven
Member
From: Massachusetts, USA
Registered: 01-23-2006
Posts: 3169
Website

Re: Form Validation

The onsubmit property is calling a javascript function called FrontPage_Form1_Validator.  That function doesn't seem to exist anywhere in the source code.  You have a function called EmailValid() - did you maybe get a name mixed up?  Or perhaps you forgot to include the javascript in the layout?


Rachael Katz
- Custom Focusing Screens for DSLR Cameras

Offline

 

#3 05-11-2006 19:59:44

cybermed
Member
From: Burke Va - US
Registered: 09-06-2001
Posts: 54
Website

Re: Form Validation

Rachael,

Thanks for your help!  I must be missing something! smile  Do you have or can you recommend a simple script that will validate Name and Email fields?  For some reason FrontPage and JBots form validation will not work in this script!!!



Offline

 

#4 05-11-2006 20:09:36

rachaelseven
Member
From: Massachusetts, USA
Registered: 01-23-2006
Posts: 3169
Website

Re: Form Validation

You're welcome.  What seems to be missing is that the script itself is not included on your page anywhere.  It could be that FrontPage put in in the head section of the page in the editior; but you didn't use the head section from FrontPage - it came from the ste_layout.txt in CCP.  So maybe all you need is to copy the script into your site layout.  I'm no Javascript expert by any means, but if you Google "javascript email validation script", you'll get no shortage of results.

Good luck!


Rachael Katz
- Custom Focusing Screens for DSLR Cameras

Offline

 

Board footer