RE: Problem with email form validation

2000-10-24 Thread Christopher Olive, CIO
you need to add a "return false;" in there. like this function CheckEmail() { if(!ValidEmail(document.EmailForm.Email)) { alert("#data.a73#"); return false; } return true; } otherwise, the script will always return true, and always think the email is correct. chris olive, ci

RE: Problem with email form validation

2000-10-24 Thread Bob Silverberg
Firstly, you should have your CheckEmail function return false if the validation fails - it looks like you haven't specified that within the function. Then, in your tag, call the function by doing: onSubmit="return CheckEmail();" Bob -Original Message- From: Michael Gagnon [mailto:[EM

RE: Problem with email form validation

2000-10-24 Thread Randy Adkins
Added form.submit = false at the end when it fails validation -Original Message- From: Michael Gagnon [mailto:[EMAIL PROTECTED]] Sent: Tuesday, October 24, 2000 10:51 AM To: CF-Talk Subject: Problem with email form validation Hi! I was wondering if there was a way arond this problem.

RE: Problem with email form validation

2000-10-24 Thread Shane Pitts
Use -Original Message- From: Randy Adkins [mailto:[EMAIL PROTECTED]] Sent: Tuesday, October 24, 2000 9:33 AM To: CF-Talk Subject: RE: Problem with email form validation Added form.submit = false at the end when it fails validation -Original Message- From: Michael Gagnon

Re: Problem with email form validation

2000-10-24 Thread Michael Gagnon
I'm sorry, but it still submits the form. It must be because of the scripts created by ColdFusion. - Original Message - From: "Christopher Olive, CIO" <[EMAIL PROTECTED]> To: "CF-Talk" <[EMAIL PROTECTED]> Sent: Tuesday, October 24, 2000 12:02 PM

Re: Problem with email form validation

2000-10-24 Thread Michael Gagnon
I did this and it still doesn't work. It must be related to the scripts created by ColdFusion for the CFForms. - Original Message - From: "Bob Silverberg" <[EMAIL PROTECTED]> To: "CF-Talk" <[EMAIL PROTECTED]> Sent: Tuesday, October 24, 2000 12:09 PM

RE: Problem with email form validation

2000-10-24 Thread Randy Adkins
Sorry use this: Form_OnSubmit = False Exit Function Just remember if you give the form a name then substitute it in JavaScript -Original Message- From: Michael Gagnon [mailto:[EMAIL PROTECTED]] Sent: Tuesday, October 24, 2000 2:21 PM To: CF-Talk Subject: Re: Problem with email form

Re: Problem with email form validation

2000-10-24 Thread Stuart Duncan
Here's something... it's a bit of a 4.0 browser thing tho, so it's up to you if you want to go with that function checkEmail(){ var ValidEmail = /^[a-z0-9]([a-z0-9_\-\.]*)@[a-z0-9]([a-z0-9_\-\.]*)(\.[a-z]{2,3}(\.[a-z]{2}){0,2})$/i; if (formname.email.value == 0) {alert('Email is Requir

RE: Problem with email form validation

2000-10-24 Thread Chad Elley
function checkemail(){` var str = form.Email.value; var re = /^\w+@\w+(\.\w+)+$/; if (form.Email.value == "") { alert("Please Enter Your Email Address."); form.Email.foc