Hi All,
I've added a line to make sure the email address is not blank...but I can't get the validation part working. if i uncomment the commented lines in red, i get the error: error '8004020e' ...this has to do with validation when i google. am i using that validator the wrong way?
Thanks peeps!!!!Code:<script> function onSubmitForm() { var formDOMObj = document.frmSend; if (formDOMObj.EqNo.value == "") alert("Please enter EQNumber!") if (formDOMObj.EqDesc.value == "") alert("Please enter EQDescription!") if (formDOMObj.EmailAdd.value == "") alert("Please enter your email address!") // if (emailValidator(formDOMObj.EmailAddress.value,"Please enter a valid email address")) else return true; return false; } //function emailValidator(){ // var emailExp = /^[\w\-\.\+]+\@[a-zA-Z0-9\.\-]+\.[a-zA-z0-9]{2,4}$/; // if(formDOMObj.EmailAdd.match(emailExp)){ // return true; // } //else{ // return false; // } //} </script>![]()



LinkBack URL
About LinkBacks

So, the only way to not get the error was to comment out the lines.
like below:
Bookmarks