Thanks Robert
Your code limits TLD to 4 which would catch ".museum"
What are people setting as a limit on TLDs

Rob

On 15 Jan 2015 at 9:53, Robert Harrison wrote:

> 
> I had similar issues with this... use the script below instead of
> CF.  You
> can do an onBlur="validateEmail();" on the email field. 
> 
> 
>         function validateEmail(){
>             var emailRegEx =
> /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
>             str = document.userform.email.value;
>             if(!str.match(emailRegEx)){
>                 alert("Please enter a valid email address
> ([email protected]).");
>                 userform.email.focus();
>                 return false;
>             }
>         }
> 



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:359968
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to