The Gallery is deprecated. No new Gallery components may be submitted, and modifying existing components is disabled. For more information please read the Gallery Deprecation blog post. This is a static snapshot of the Gallery for archive purposes.
See 2 more by this user. Created: 11/14/10
Project: YUI 3
License: YUI BSD
YUI Version: 3.7.0pr1
Free for use.
The HTML 5 forms project emulates the new attributes and input types available in HTML 5 for legacy browsers.
It current supports the attributes: autofocus, min, max, pattern, placeholder, and required
And the new types: email and url
More information is available at:
http://mattsnider.com/legacy-support-for-html-5-forms/
To use the HTML 5 Forms gallery, simply include the module, create a new instance, and render it. You may also provide an 'aftervalidationfx' function which will be called each time any field is validated.
YUI().use('gallery-html5-forms', function(Y) {
function aftervalidationfx(elNode, boolValid) {
// do something after a field validates or not
}
var html5Form = new Y.HTML5FormSupport({
boundingBox: '#id_form_test',
aftervalidationfx: aftervalidationfx
});
html5Form.render();
});
No forum posts for this module.
All code on this site is licensed under the BSD License unless stated otherwise.