The only problem is that this script will work only if the password field is type=”text”. As many users make their password field type=”password”, I did a small modification to your script
Under:
function get(obj)
Find:
if (obj.childNodes[i].type == “text”)
Replace with:
if (obj.childNodes[i].type == “text” || “password”)
Naseer Ahmad Mughal
on May 24th, 2008
Nice script!
cmepthuk
on June 8th, 2008
балин. Ð´Ð»Ñ Ñтой фичи можно, и пожалуй, нужно, обойтиÑÑŒ без ajax, ибонах…
Zahid Ghafoor
on June 10th, 2008
Well Done!
gfsagh
on June 14th, 2008
This script is pointless, just check the password in JavaScript and then you won’t be bombarded by AJAX requests every time a user presses a key.
awdaw
on June 30th, 2008
any pass with # as first character is ‘pretty weak’
jaswanth
on July 4th, 2008
hi… send me some Ajax examples with code….
thanks in advance.
bye
my mailId:
Zbiór skryptów AJAX/Javascript/Dhtml. (50+) | Darmowe skrypty, programowanie, informacje domeny
on August 16th, 2008
[...] AJAX Password Strength [...]
Deusdies
on October 14th, 2008
Hi,
The only problem is that this script will work only if the password field is type=”text”. As many users make their password field type=”password”, I did a small modification to your script
Under:
function get(obj)
Find:
if (obj.childNodes[i].type == “text”)
Replace with:
if (obj.childNodes[i].type == “text” || “password”)
I hope you don’t mind.
Cheers!
Patrick
on December 3rd, 2008
Thanks!Deusdies
that’s what i want!
XanelaWeb – Diseño y Web » Contraseñas seguras con JavaScript
on August 3rd, 2009
[...] AJAX Password Strength [...]
mark
on November 17th, 2009
Deusdies your code is not correct, what you have there is basically doing this:
if (obj.childNodes[i].type == “text” || true)
so the if statement will always be true
you need to include the variable
if (obj.childNodes[i].type == “text” || obj.childNodes[i].type == “password”)
Lalit
on August 5th, 2010
THIS SCRIPT IS NOT RETURNING THE EXPECTED RESULTS