@robpike Any type of control but a textbox for numeric input is inexcusably bad UX.
Any good browser or UI toolkit should disallow them and silently replace them with textboxes.
@robpike Any type of control but a textbox for numeric input is inexcusably bad UX.
Any good browser or UI toolkit should disallow them and silently replace them with textboxes.
@TimWardCam @robpike If so that's just sad and stupid. I always assumed they were something mindless UI devs believed they were supposed to use anywhere there was a "finite set of choices" and they didn't want to validate input..
@dalias @robpike Isn't it an ancient attempt at a security device, harking back to the days (last century?) when there were malware thingies called "key loggers" which could capture what you typed in a text box but couldn't capture what you selected in a scrolling widget?
@TimWardCam @robpike You need server side validation regardless. Client side is just a convenience for the user.
@dalias @robpike Yes well, my web site has dropdowns for dates because I'm too lazy to write any decent validation, but at least it almost always defaults to the date that the punter wants.
@kolya @robpike That is NOT fine UX. Fine UX would be interpreting that as a text field that validates YYYY-MM-DD.
@dalias @robpike
all modern browsers support a standard date picker with fine UX: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/date
the problem are webdevs who only know their Javascript framework and have little idea about HTML/CSS and therefore needlessly build their own pretty but shitty datepickers
@dalias @kolya @robpike can't have that. It would confuse the Yanks ;)
@spzb @kolya @robpike You could have it as a user preference. Rather than those hideous date pickers that take tens or hundreds of clicks to do what 8 keystrokes could do.
@kolya @spzb @robpike I didn't get it to load to check, but that doesn't work on the vast majority of real world sites..
@dalias @spzb @robpike
You do realise that you can type into the date picker I just linked on MDN, right?
@kolya @dr2chase @spzb @robpike What's the about:config for it?
@dr2chase @dalias @spzb @robpike
you can set that prefence in your browser or OS if you like and this date picker will use it. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/date#:~:text=The%20appearance%20of%20the%20date%20picker%20input%20UI%20varies%20based%20on%20the%20browser%20and%20operating%20system.%20The%20value%20is%20normalized%20to%20the%20format%20yyyy%2Dmm%2Ddd.
@kolya @dalias @spzb @robpike I loathe any MM/DD/YYYY or DD/MM/YYYY format because for many dates (including my birthday, spouse, and 1 kid) there is a little ambiguity. I don't care if it is "standard", it sucks, I write all my US-normie dates DD-Month-YYYY and all my sensible person dates YYYY-MM-DD.
@dalias @spzb @robpike
That is a web standard, the browser compatibility chart showing it does work on all modern browsers is right there. It doesn't require JS or anything.
GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.
All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.