Results 1 to 10 of 29

Thread: [0.2] Ext.ux.PasswordMeter

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #21
    Ext User xpressive's Avatar
    Join Date
    Oct 2007
    Vote Rating

    Default client side validation of the entered password

    very nice feature!
    I have added a function to provide client side validation of enterd password.

    Maybe it is helpful for somebody

             * validate the strength of the entered password, based on the score
             * Private function
                    validateValue : function(value){
                            if(!, value)){
                                return false;
                            if(value.length < 1){ // if it's blank and textfield didn't flag it then it's valid
                                return true;
                            var nScore = this.calcStrength(value);
                            var minStrength = 25;
                            if (nScore < minStrength) {
                             this.markInvalid('The strength of your password is not enough!');
                             this.isValid = false;
                             return false;
                            return true;
    Full source is attached below ...
    Attached Files Attached Files

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts