Stumped: persistent error messages
Per requirements from our UX department, when a [required]:invalid element loses focus, I want to leave an error message beside it and allow the user to tab to a different field. Thus being able to see multiple errors at once.
Having trouble sorting out how to do this gracefully with webshims. (or at all)
The UI of the HTML5 constraint validation is pretty simple and should be customized in most cases. There are some examples demonstrating the API:
To give you full control, you always need to use the JS-API to get the Job down. Here is a good article explaining the API. If you still have problems, let me know your full requirements, I can try to build a simple example on that.
Thanks. I'll take a look.
From: Alexander Farkas <[email protected]mailto:[email protected]> Reply-To: aFarkas/webshim <[email protected]mailto:[email protected]> Date: Thu, 8 Nov 2012 07:42:01 -0800 To: aFarkas/webshim <[email protected]mailto:[email protected]> Cc: Kevin Barkan <[email protected]mailto:[email protected]> Subject: Re: [webshim] Stumped: persistent error messages (#181)
The UI of the HTML5 constraint validation is pretty simple and should be customized in most cases. There are some examples demonstrating the API:
- example using only CSShttp://jsfiddle.net/trixta/NnNKv/
- example using the JS-APIhttp://jsfiddle.net/trixta/tLXXN/
To give you full control, you always need to use the JS-API to get the Job down. Here is a good article explaining the APIhttp://www.html5rocks.com/en/tutorials/forms/constraintvalidation/. If you still have problems, let me know your full requirements, I can try to build a simple example on that.
— Reply to this email directly or view it on GitHubhttps://github.com/aFarkas/webshim/issues/181#issuecomment-10192366.