JS email validation w/FP

L

Larry

I am trying to add JS email validation to a form and am unsure of how to
activate it while using the FP form processor. The example specifies
i.e. onSubmit="return ValidateForm()" for example but it doesn't work.
On error it should return to the errored field but anything is accepted
in the field.

The validate form is an external JS 'supposed to work'. It is too
large to be included here but is // Generic Form Validation
// Jacob Hage ([email protected]) supposed to be widely used.

The url of the page is:
http://www.bed-and-breakfast-travel.com/bookstore-css/feedback.html

Could someone take a look and see if I'm doing it correctly? Or is there
something better?

Larry



--
For your security and peace of mind ALL emails are automatically scanned
with the latest Norton AV Virus Definitions. Not that I have any virus'
but why not be careful! I get virus signature updates regularly!

A Belt and Suspenders are the best security invented!
 
J

JPKarlsen [FP MVP]

You must move this to the header:

<!--- Following script used for email verification, maybe... -->
<script language="JavaScript" src="form-validate.js"></script>

Then you need to call the define function in the bodys onload function as explained in the script.


Regards Jens Peter Karlsen. Microsoft MVP - Frontpage.


nntp://msnews.microsoft.com/microsoft.public.frontpage.client/<[email protected]>

I am trying to add JS email validation to a form and am unsure of how to
activate it while using the FP form processor. The example specifies
i.e. onSubmit="return ValidateForm()" for example but it doesn't work.
On error it should return to the errored field but anything is accepted
in the field.

The validate form is an external JS 'supposed to work'. It is too
large to be included here but is // Generic Form Validation
// Jacob Hage ([email protected]) supposed to be widely used.

The url of the page is:
http://www.bed-and-breakfast-travel.com/bookstore-css/feedback.html

Could someone take a look and see if I'm doing it correctly? Or is there
something better?

Larry



--
For your security and peace of mind ALL emails are automatically scanned
with the latest Norton AV Virus Definitions. Not that I have any virus'
but why not be careful! I get virus signature updates regularly!

A Belt and Suspenders are the best security invented!

[microsoft.public.frontpage.client]
 
L

Larry

Thank you JPKarlsen, I forgot the onload section. Will try again.
Larry
You must move this to the header:

<!--- Following script used for email verification, maybe... -->
<script language="JavaScript" src="form-validate.js"></script>

Then you need to call the define function in the bodys onload function as explained in the script.


Regards Jens Peter Karlsen. Microsoft MVP - Frontpage.


nntp://msnews.microsoft.com/microsoft.public.frontpage.client/<[email protected]>

I am trying to add JS email validation to a form and am unsure of how to
activate it while using the FP form processor. The example specifies
i.e. onSubmit="return ValidateForm()" for example but it doesn't work.
On error it should return to the errored field but anything is accepted
in the field.

The validate form is an external JS 'supposed to work'. It is too
large to be included here but is // Generic Form Validation
// Jacob Hage ([email protected]) supposed to be widely used.

The url of the page is:
http://www.bed-and-breakfast-travel.com/bookstore-css/feedback.html

Could someone take a look and see if I'm doing it correctly? Or is there
something better?

Larry



--
For your security and peace of mind ALL emails are automatically scanned
with the latest Norton AV Virus Definitions. Not that I have any virus'
but why not be careful! I get virus signature updates regularly!

A Belt and Suspenders are the best security invented!

[microsoft.public.frontpage.client]

--
For your security and peace of mind ALL emails are automatically scanned
with the latest Norton AV Virus Definitions. Not that I have any virus'
but why not be careful! I get virus signature updates regularly!

A Belt and Suspenders are the best security invented!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top