-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature request - Add new html5 input types #931
Comments
Just ran across this demo to provide fallback for unsupported browsers http://net.tutsplus.com/tutorials/html-css-techniques/how-to-build-cross-browser-html5-forms/ |
As a note, if we provide html5 fallback, we can 'lose' some of our controls and push the work to the browser (color, date, etc...) |
Further clarification...'lose' should mean we can remove some of the controls since their function is accomplished in the browser or with the javascript fallback. |
Also another updated html5 forms fallback script https://github.com/zoltan-dulac/html5Forms.js |
FWIW, this feature is implemented, but not utilized yet in our code, nor do we provide fallback |
No longer an 'alpha' only ticket |
Note, we've implemented the following via the {control} smarty function with NO fallback (meaning they are treated as simple text input boxes in unsupportive browsers). They also honor the 'pattern' attribute
|
Attempting to implement the html5forms.js code, but it doesn't work consistently. It seemed to be the most all-inclusive package since it provided automated script loading, though it relied on several other libraries to provide all its support. However, I'll give the http://net.tutsplus.com/tutorials/html-css-techniques/how-to-build-cross-browser-html5-forms/ one a try though it requires static loading of helper widgets. This may likely have to wait until a future version? |
As a note, the fallback 'range' control has a few quirks (using jqueryui slider). Tends to NOT display the default value correctly and the 'thumb' slider isn't always picked up by the mouse. May be some styling issues with the control validation 'warnings' displays |
This has been implemented as intended |
Lighthouse URL: https://exponentcms.lighthouseapp.com/projects/61783/tickets/885 |
There are several new input types allowed by html5 that aid form completion, esp. on handheld devices. The drawback is that they are not all fully implemented in each browser, however there are some fallback options http://diveintohtml5.info/forms.html, and at the very least, they fallback to a straight text input control.
This might best be implemented as a variation of the textcontrol (or genericcontrol) and isolated via the {control} smarty function. Here's a site with charts showing browser features: http://caniuse.com/forms
html5 controls worth adding would be:
html5 control featurs not worth adding?
The text was updated successfully, but these errors were encountered: