Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

Making a better JavaScript Password Validation

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 04-30-2009, 08:05 AM
 
Jeremy Smith Jeremy Smith is offline
 

Senior Member
  
Join Date: Jan 2009
Posts: 167
 

Question Making a better JavaScript Password Validation

I am really struggling with this.

I would like to make a much better JavaScript form validation for our register form.

Its quite paramount this works really for the password.

But I would like to limit users from entering anything more than characters and numbers like:

0-9 and A-Z (lower or uppercase)

When a user tries to enter a password in the password field, is it possible to make it so when they exit that field, if they have entered a - sign then it goes red?

Could someone list some code (JavaScript) that would make this work?

Would then make it more intuitive as to what is right, obviously guiding them as to what is legit as a password for our form.

Regards,
Jeremy
__________________
Version 4.1.11 on Linux (Fedora)
X-Cart Gold
Reply With Quote
  #2  
Old 05-01-2009, 04:15 AM
 
Jeremy Smith Jeremy Smith is offline
 

Senior Member
  
Join Date: Jan 2009
Posts: 167
 

Question Re: Making a better JavaScript Password Validation

I have found one that works to a minimum value but I found this link to a good password strength meter if you will.

http://codeassembly.com/How-to-make-a-password-strength-meter-for-your-register-form/

Just wanted to see if I could get this working in x cart but nothing I do seems to work, can someone help please?

Thanks,
Jez
__________________
Version 4.1.11 on Linux (Fedora)
X-Cart Gold
Reply With Quote
  #3  
Old 05-01-2009, 05:02 AM
 
PhilJ PhilJ is offline
 

X-Guru
  
Join Date: Nov 2002
Posts: 4,094
 

Default Re: Making a better JavaScript Password Validation

http://www.xcartmods.co.uk/x-cart-ajax-password-strength-meter-v4x-x-cart-mods-pr-49.html
__________________
xcartmods.co.uk
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 12:46 PM.

   

 
X-Cart forums © 2001-2020