X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Making a better JavaScript Password Validation (https://forum.x-cart.com/showthread.php?t=47287)

Jeremy Smith 04-30-2009 08:05 AM

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

Jeremy Smith 05-01-2009 04:15 AM

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

PhilJ 05-01-2009 05:02 AM

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


All times are GMT -8. The time now is 11:24 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.