PDA

View Full Version : using Javascript validation with FP Forms



Yazoo
05-06-2009, 06:46 AM
Hi,

Got some Javascripts to do some validating on a Form.
Cannot get it to work when using Frontpage Forms.

Something to do with the 'onsubmit' part?

Basically, I am asking how to call a javascript function after using the sumbit button on a FP Form?

Regards
Mo

www.moneycheckerpen.com

MandyJay
05-06-2009, 07:13 AM
Again we would need to see what you are talking about or we cant help. It is not that advisable to mix FP forms with javascript as have had quite a few questions to do with the forms later breaking, you may consider just using a normal form that doesnt rely on the FrontPage extensions and using javascript with that.

But what exactly is it you are trying to do/validate?
also url ....

MJ

Yazoo
05-06-2009, 11:21 AM
Hi MJ,
Here is the URL for the form:
http://www.moneycheckerpen.com/Quote-Order/Bulk.htm

Trying to validate correct email address format and compare the two email addresses. Got the scripts. But when trying to reference them, they dissapear from the code.

Regards
Mo

www.moneycheckerpen.com

MandyJay
05-06-2009, 11:55 AM
can you give url to the scripts also please so we know what code you are trying to work with. Thanks

MJ

Yazoo
05-06-2009, 12:14 PM
Hi MJ,

the scripts are on the same page in the <head> section
and on line 173 in <body> section.

Thanks
Mo

www.moneycheckerpen.com

MandyJay
05-06-2009, 01:06 PM
Okay I have been to the website where you got the script from and I dont think it works with frontpage form. You see a FrontPage form must have the FP Extensions on the server and the form cannot work without them. Now the script you are using, the stuff that you say keeps disappearing from the form itself, that is becuase it is not compatible with FrontPage form. What you need to do is just use an ordinary form ... do a google and ton of sites out there offering free scripts and even online form generators ... you can then use that script with them I would imagine.

Also as a by-the-by you have a "no copy" script in the head tag, that actually is quite annoying as I tested out your form and made a typo and I was stopped from highlighting my mistake and correcting it ...... I dont see why you need a "no copy text" on your site ..... all anyone has to do is save the page and they have whatever they want.

MJ

Yazoo
05-07-2009, 04:12 AM
I thought that might be the case

Thanks MJ