1.7 Proposal - Password Widget

1.7 Proposal - Password Widget


Hey folks,
On the main UI list I've just posted details about my new widget, the
password widget (http://groups.google.com/group/jquery-ui/
browse_thread/thread/4ed3a6d773ce87de).
At the moment, it's actually almost pretty much completed, however I
understand I've missed the boat on 1.6, so I'd like to put it forward
for 1.7.
The password widget works by attaching itself to a input password
field, like so:
jQuery(":password").password();
It then attaches a progress bar to below the password area (plan to
make this customisable) and takes the users input on keyup. This
calculates a score based on the entered value and puts the progress
bar into position to show the stength.
It also allows you to add your own custom validation rules, as well as
ammend scores and change what rules are active:
.password('addRule', 'ruleName', function(), score, active);
.password('changeScore', 'ruleName', score);
.password('ruleActive', 'ruleName', score);
The calculateScore method can also be used as a getter to pass it
words via code:
var score = jQuery('#foo').password('calculateScore',
'myEx4mp1epassw0rd');
Please feel free to pick it apart to get it in time for the next
release. I'll only merge it into the main repo once I get the sayso
(I already have write permission on the main repo).
Regards,
Regards,
Tane Piper
http://digitalspaghetti.me.uk
email/gtalk: tane@digitalspaghetti.me.uk
twitter: http://twitter.com/tanepiper