IE7 textbox onfocus problem

Posted by Craig on Stack Overflow See other posts from Stack Overflow or by Craig
Published on 2010-06-09T15:41:20Z Indexed on 2010/06/09 15:52 UTC
Read the original article Hit count: 267

Filed under:
|

Because IE won't do document.getElementById(ID).setAttribute('type','password') I've re-engineered the way the password field woirks on this site:

http://devdae.dialanexchange.com/Default.aspx

so it works in accordance with this idea:

http://www.folksonomy.org/2009/01/12/changing-input-type-from-text-to-password-in-internet-explorer-hack/

It works fine in IE8 and FF3. It breaks in IE7 just as you click into the password field. I'm now tearing my hair out. Can anyone give me a clue what's wrong as IE7's diagnosis is just "Object expected, code 0"?

© Stack Overflow or respective owner

Related posts about workaround

Related posts about ie7