3 ms·
A better way to do this: * Have a text input and password input HTML entities next to each other with CSS that removed the right/left border and spacing (dynam
by bl4k 16y ago
A better way to do this:
* Have a text input and password input HTML entities next to each other with CSS that removed the right/left border and spacing (dynamically resize the input boxes if you like)
* Capture a space keyprees event to shift focus to the password field
* Same effect, but degrades in non-JS browsers to a normal entry field and allows the browser to still provide password remember, masking and form parsing on the backend.
I don't like the idea of splitting/parsing the field on the client side in JS - there is too much that can go wrong. You are telling the browser that this is just a normal text field, so the value will pop up (in the clear) on other sites that share the same input name.
- alanh 16y agoWhy do this at all? Tab isn't any harder than teaching users that on your site and only your site, space works the same way on one field. Poor discovery and dubious benefit is not a great combo. That said, you're right that it would be a better implementation, assuming backspace effectively shift-tabbed.
- deleted 16y ago[deleted]
- bl4k 16y agoI wouldn't. My response was totally about a better way of doing it, otherwise I would have mocked this up and published it. My own opinion is that the lack of consistency in registration and signup forms across the web is a real problem for regular users, and we do not need another yet more confusing option. I picked this up from watching regular people attempt to signup/signin to web services. The web could use a standard style guide published by some sort of group. ie. this is what a reg form should look like, this is where a login box should be etc. It is a stretch to think it would work, but it would help regular users a lot (I am not talking about all forms having the same design, talking about standard field names and positions, standard features (eg. double prompt for password, show strength, password reset, no password in clear, email as username etc, always have a logout button in top-right, etc.). There have been no real breakthroughs in design wrt the signup/signin/logout process online. HTTP auth didn't catch on, and that was the last chance we had at standardizing it.