webshim

webshim polyfill localStorage undefined in IE6

↘锁芯ラ 提交于 2019-12-22 11:27:02
问题 When I run the following code in an IETester IE6 window: <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>DealingTree</title> <meta http-equiv="Content-type" content="text/html;charset=utf-8"/> <script type="text/javascript" src="/js/modernizr.js"> </script> <script type="text/javascript" src="/js/jquery.js"> </script> <script type="text/javascript" src="/js/sssl.js"> </script> <script type="text/javascript" src="/js/webshims/js-webshim/minified/polyfiller.js"> <

Can I use an HTML input type “date” to collect only a year?

我的未来我决定 提交于 2019-12-18 11:49:09
问题 I have a field that is required to collect a year from the user (i.e. a date with a year resolution - for ease of storage I'd prefer to store an actual date value and not a number). I would like to use the date input UI supported by modern browsers or webshims because its nice and plays well with modern platforms. I couldn't figure out how to get the UI to display only the year. Any ideas? If there is no platform support, ideally I would like to have a UI something like you can see here if

Programmatically updating a webshim date

无人久伴 提交于 2019-12-12 04:49:37
问题 I'm using an html5 <input type="date"> with a knockout binding. I'm using webshim for browsers that don't support html5 dates. The native html5 browsers are working perfectly, changing the date changes the model, changing the model programmatically changes the date shown in the date input. Changing the date on a browser that does not support html5 (e.g. IE8) works correctly and updates the knockout model, but the reverse is not true. Changes to the model are not propagated to the webshim

Can I use an HTML input type “date” to collect only a year?

守給你的承諾、 提交于 2019-11-30 04:42:08
I have a field that is required to collect a year from the user (i.e. a date with a year resolution - for ease of storage I'd prefer to store an actual date value and not a number). I would like to use the date input UI supported by modern browsers or webshims because its nice and plays well with modern platforms. I couldn't figure out how to get the UI to display only the year. Any ideas? If there is no platform support, ideally I would like to have a UI something like you can see here if you click "Preview" and then click the top of the widget a couple of times, except in reverse: when you

html5 forms with polyfills - is it worth it?

て烟熏妆下的殇ゞ 提交于 2019-11-29 19:51:59
Despite all of the buzz around html5 forms, it seems to me like you are creating extra work, in most scenarios, by going this route. Take, for example, a datepicker field. The native html5 implementation of this renders differently in every browser. In addition your polyfilled solution (jquery UI for instance), for a browser not supporting this feature, will also render differently. Now, we have introduced multiple points of customization and maintenance for the same form, when we had a perfectly working and unified solution with jquery! I'd love to hear about some real world experiences in

Polyfill HTML5 form attribute (for input fields)

£可爱£侵袭症+ 提交于 2019-11-29 10:08:24
This is the markup I use: <input type="text" form="myform" name="inp1" /> <form id="myform" name="myform"> ... </form> Now I realized that it does not work for old IE and therefore I am searching for a HTML 5 polyfill. Anyone aware of a certain polyfill which covers this HTML5 feature? CodeColorist I wrote this polyfill to emulate such feature by duplicating fields upon form submission, tested in IE6 and it worked fine. (function($) { /** * polyfill for html5 form attr */ // detect if browser supports this var sampleElement = $('[form]').get(0); var isIE11 = !(window.ActiveXObject) &&

html5 forms with polyfills - is it worth it?

大城市里の小女人 提交于 2019-11-28 14:45:41
问题 Despite all of the buzz around html5 forms, it seems to me like you are creating extra work, in most scenarios, by going this route. Take, for example, a datepicker field. The native html5 implementation of this renders differently in every browser. In addition your polyfilled solution (jquery UI for instance), for a browser not supporting this feature, will also render differently. Now, we have introduced multiple points of customization and maintenance for the same form, when we had a

Polyfill HTML5 form attribute (for input fields)

若如初见. 提交于 2019-11-28 03:23:37
问题 This is the markup I use: <input type="text" form="myform" name="inp1" /> <form id="myform" name="myform"> ... </form> Now I realized that it does not work for old IE and therefore I am searching for a HTML 5 polyfill. Anyone aware of a certain polyfill which covers this HTML5 feature? 回答1: I wrote this polyfill to emulate such feature by duplicating fields upon form submission, tested in IE6 and it worked fine. (function($) { /** * polyfill for html5 form attr */ // detect if browser