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”)
This post has 10 comments
May 24th, 2008
Nice script!
June 8th, 2008
балин. Ð´Ð»Ñ Ñтой фичи можно, и пожалуй, нужно, обойтиÑÑŒ без ajax, ибонах…
June 10th, 2008
Well Done!
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.
June 30th, 2008
any pass with # as first character is ‘pretty weak’
July 4th, 2008
hi… send me some Ajax examples with code….
thanks in advance.
bye
my mailId:
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!
December 3rd, 2008
Thanks!Deusdies
that’s what i want!
December 22nd, 2008
nice script
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”)
Trackbacks
Add a comment