[Javascript] regex example & code sample

shawn_milochik at godivachoc.com shawn_milochik at godivachoc.com
Fri Apr 30 11:50:47 CDT 2004


                                                                           
             paul at novitskisoft                                             
             ware.com                                                      
             Sent by:                                                   To 
             javascript-bounce         javascript at LaTech.edu               
             s at LaTech.edu                                               cc 
                                                                           
                                                                   Subject 
             04/30/2004 12:39          Re: [Javascript] regex example &    
             PM                        code sample                         
                                                                           
                                                                           
             Please respond to                                             
             javascript at LaTech                                             
                   .edu                                                    
                                                                           
                                                                           












Shawn,

Welcome.  I won't have time to look at your script logic until later today,

but very quickly my first suggestion is that, instead of this syntax:

onsubmit="if (validatePass('frmCheckPass', 'txtOldPassword',
'txtNewPassword1', 'txtNewPassword2') == false){ return false;}"

you use simply:

onsubmit="return validatePass('frmCheckPass', 'txtOldPassword',
'txtNewPassword1', 'txtNewPassword2')"


<snip>





Paul,

Thanks for the suggestion.  I never made the connection.

Shawn



**********************************************************************
This e-mail and any files transmitted with it may contain 
confidential information and is intended solely for use by 
the individual to whom it is addressed.  If you received
this e-mail in error, please notify the sender, do not 
disclose its contents to others and delete it from your 
system.

**********************************************************************




More information about the Javascript mailing list