DISQUS

folksonomy: Changing Input Type from Text to Password in Internet Explorer Hack

  • Hüseyin · 10 months ago
    Very thanks, perfect code. İşime Çok Yaradı Teşekkürler
  • gerardo martinez · 10 months ago
    thank you! I was searching for this! =)
  • kenneth · 9 months ago
    This is very sweeeet!
    IE is such a crap!

    Tnx for this! :)
  • Joel Gascoigne · 8 months ago
    That's pretty neat, if a little hacky! But nice work, I will be making use of this for sure! Thanks
  • document management · 8 months ago
    This is the main reason why I don't use internet explorer.. but I'll try this one on someone else computer, this will surely be tricky!!
  • chopperx · 8 months ago
    Yes Kenneth IE is crap - everyone is unfortunately still dealing with the mess the lazy IE developers have made (now with three versions to support - yeah for browsers standards!).

    Instead of having the textbox type available via JavaScript aka - formfieldname.type, you have resort to hacks and workarounds to appease the IE gods - who think their browers don't have to ever follow W3C specifications that were established darn near a DECADE ago.

    IE is always the lowest common denomintator and will be becuase their browsers are flawed. Long live Mozilla!
  • Brian · 7 months ago
    Worked like a charm. Thanks!
  • Satish · 7 months ago
    Wonderful!!! it works fine
  • Aaron · 6 months ago
    Great Solution! I set this up for both Username and Password.

    I also gave the mockpass / mockuser a name "password2" "username2" and did some php code to check these values if "username" and "password" from realuser / realpass are empty just incase the user has javascript disabled.. this way the form still works no matter what.
  • Dödsknarktvåtusen · 6 months ago
    Awesome, thanks!
  • benjy77 · 4 months ago
    All nice... But there is a major drawback: Non-JS Browsers now show a Text-Field instead of a Password-Field. Solution: Write a password-field into your HTML - use JS to hide it and display the mock-text-field instead.
  • Gadgets · 4 months ago
    If the user clicks away from the real password input without entering text, we want to replace the label.
  • Ryan · 3 months ago
    Its so nice. This post is very good.
  • Chiggi · 3 months ago
    This is really nice. I will be using this for sure.
  • Enric · 2 months ago
    Great solution!! Very very very useful!! Thank you very much!
  • tegansnyder · 2 months ago
    Thanks very much. Very helpful.
  • Syed · 2 months ago
    Great solution!!

    Thanks very much. Very helpful.
  • tustind · 1 month ago
    great solution!!
  • BennY- · 6 days ago
    Thanks for this nice solution!