I Wanted to Type a Number (2016)
filamentgroup.com
filamentgroup.com
/s
It has been there or a long time, so I kinda consider it a remnant of the old battle against keylogger, since the number position changes. It does seem outdated now, and I'm unsure if it's still useful compared to all the other possible checks they could implement.
Nevertheless, virtual keyboards need to be improved, and in my opinion it's not the websites faults. It's the browser who has to do its job.
Which resolution of thumbnail should I provide for each client?
On a desktop, I can be reasonably sure that the user doesn't have limited data or bandwidth, but their resolution (and dpi) might be quite small.
On mobile, the user might have a hiDPI screen which indicates I should send them a high-resolution thumbnail. But I don't know if they would like me spending their limited data or bandwidth that liberally.
So far, I haven't found a way to indicate or request these sort of preferences, but with the up-and-coming support for srcSet, <picture> elements etc., I would love to provide multiple thumbnail alternatives if a client could reasonably decide between them.
As a user, I whish there was an easy way to just change the keyboard to what I want to input. Android/Google keyboard seems to have something like that nowadays (deeply hidden, however), i.e. the possibility to switch to a numeric keyboard, as a user.
I've got a QWERTY layout, both regular and one with extra keys for terminals, a full number layout and a keypad layout all easily switchable. It also has what's surprisingly become one of my favourite features, left and right arrows at the top. It helps so much with text navigation, especially when writing long blocks of text.
first, the browser default error message is not accessible.
then we decided to use novalidate="novalidate" to tell browser to not do the validation.
Chrome does not submit the value if the input is not perfect numeric ( try "......"). so it does wipe out user input without letting us catch it on the server!
We just changed it back to type="text" !:(
if (country === countries.US) {
input.setAttribute('inputmode', 'numeric');
}https://en.wikipedia.org/wiki/List_of_ZIP_Code_prefixes#Star...
For example, The Hartford Fire Insurance company's address is
HARTFORD FIRE INS CO
1 HARTFORD PLZ
HARTFORD CT 06115-1703
Note the zip. Leading zero, and the last 4 digits. There are other businesses at the same address, with different zip codes. EG HARTFORD FINANCIAL SERVICES
1 HARTFORD PLZ
HARTFORD CT 06115-1709
Etc, etc. Zip codes in the US are text strings, that happen to be composed of the digits 0-9 and a hyphen.Or, display a numeric keypad as default with a text keypad available.
There are better solutions than what is currently offered.
* https://mjt.me.uk/posts/falsehoods-programmers-believe-about... (https://news.ycombinator.com/item?id=5791489)