Bruce_PPC
12-02-2009, 02:41 PM
I get the error message: "FormValidator is undefined", but can't seem to figure out why. Here is the script the error is being generated from:
===================================
<script language="JavaScript">
$validator = new FormValidator("contact_form");
//remove the following two lines if you like error message box popups
frmvalidator.addValidation("name","req","Please provide your name");
frmvalidator.addValidation("email","req","Please provide your email");
frmvalidator.addValidation("email","email","Please enter a valid email address");
</script>
<script language='JavaScript' type='text/javascript'>
function refreshCaptcha()
{
var img = document.images['captchaimg'];
img.src = img.src.substring(0,img.src.lastIndexOf("?"))+"?rand="+Math.random()*1000;
}
</script>
===================================
If you need more info on the page the script is on, click link below:
http://www.prescriptionpc.com/php/contact_prescriptionpc.php
Any help would be greatly appreciated!
-Bruce
===================================
<script language="JavaScript">
$validator = new FormValidator("contact_form");
//remove the following two lines if you like error message box popups
frmvalidator.addValidation("name","req","Please provide your name");
frmvalidator.addValidation("email","req","Please provide your email");
frmvalidator.addValidation("email","email","Please enter a valid email address");
</script>
<script language='JavaScript' type='text/javascript'>
function refreshCaptcha()
{
var img = document.images['captchaimg'];
img.src = img.src.substring(0,img.src.lastIndexOf("?"))+"?rand="+Math.random()*1000;
}
</script>
===================================
If you need more info on the page the script is on, click link below:
http://www.prescriptionpc.com/php/contact_prescriptionpc.php
Any help would be greatly appreciated!
-Bruce