4 ms·
> the alerts can't be styled and the behaviors can't be controlled It's not clear to me whether that's a problem. Isn't consistent UI a good thing? Isn't it fa
by vardump 10y ago
> the alerts can't be styled and the behaviors can't be controlled
It's not clear to me whether that's a problem. Isn't consistent UI a good thing? Isn't it faster to fill the forms correctly if alerts always appear in the same way?
- Semiapies 10y agoHow is it consistent UI when it doesn't match your design and looks and works very different in every browser?
- eivarv 10y agoIt's consistent with the platform, i.e. the alerts are native
- Semiapies 10y agoYou should experiment with these. They are different on different browsers on the same platforms.
- eivarv 10y agoSure, but (unless their GUI is implemented with web technologies for some reason) they generally use native widgets, at least.
- Semiapies 10y agoI've actually spent many hours trying to make them work. You should at least invest a little research time before making proclamations about how you imagine they work.
- eivarv 10y agoI now see that we're not really talking about alerts in the 'alert()' sense, but rather about the popups - which are not native widgets (which are better off non-modifiable, in my opinion). My bad. Do you know of any good reading material concerning these form validation popups? From reading on MDN [0], they seem to be browser specific - like the Chrome connection tab [1] - but somewhat customisable via JS. [0]: https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/Forms/Data_form_validation#Customized_error_messages https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/Form... [1]: https://blog.digicert.com/understanding-the-google-chrome-connection-tab/ https://blog.digicert.com/understanding-the-google-chrome-co...
- Retr0spectrum 10y agoNot really. The errors on Firefox at least, just say "Please match the requested format", which doesn't tell the user where they went wrong for potentially complex requirements.
- Flimm 10y agoYou can use the title attribute to customise the error message.
- deleted 10y ago[deleted]
- martin-adams 10y agoConsistency is a good thing, provided that the thing you are being consistent with is good in the first place.