webshim icon indicating copy to clipboard operation
webshim copied to clipboard

Stumped: persistent error messages

Open barkan opened this issue 14 years ago • 2 comments

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)

barkan avatar Nov 08 '12 00:11 barkan

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.

aFarkas avatar Nov 08 '12 15:11 aFarkas

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.

barkan avatar Nov 08 '12 15:11 barkan