Questions tagged [webshim]

Webshim or Webshims is a modular capability-based polyfill loading libary, which extends jQuery with many HTML5 features in legacy browsers

Webshim or Webshims is an open source modular capability-based polyfill loading libary, which extends jQuery with HTML5 features in legacy browsers and fixes bugs in modern browsers. It is based on Modernizr and jQuery.

Key principle of webshims is to implement the HTML5 API without inventing a new API, to achieve this, the abstracted jQuery API is used.

Example Source for HTML5 Video:

$('video').prop('currentTime', 20); 

Resources:

77 questions
0
votes
1 answer

Webshim calendar gets weird in "multi page template" Jqm

Nothing can explain better then fiddle: www.jsfiddle.net/Dt2TE/15/ Compare with where their isn't any multie page view. www.jsfiddle.net/Dt2TE/9/ There is some JS that doesn't get properly loaded into the other page (#two).
thatsIT
  • 2,085
  • 6
  • 29
  • 43
0
votes
1 answer

Can I access the default validationMessage of an element when using WebShim Polyfill lib?

When using the HTML5 Validation API it is possible to intercept the error, access the error message and render it differently. When using the WebShim Polyfill, I would've hoped that this would work in the same way without having to access a…
Nick Middleweek
  • 1,049
  • 2
  • 11
  • 19
0
votes
1 answer

Webshim calendar configuration

1.Is it possible to make the "clear" button on the datepicker to be available after I picked a date in both my inputs. After I done it, its impossible to clear the date.
thatsIT
  • 2,085
  • 6
  • 29
  • 43
0
votes
1 answer

Webshim: Validate group of checkboxses if radiobutton is selected (jquery mobile)

Got 2 radio buttons. If the second one is selected a div with a group of checkboxses is shown. In that case one of the checkboxses needs to be selected. But if the first radio button is selected then the div with the checkboxses isn't visibile but…
thatsIT
  • 2,085
  • 6
  • 29
  • 43
0
votes
6 answers

HTML5: Do I need to validate a webform with both client-side AND server-side or can I just do client-side?

I have a small contact form created in HTML5 with client-side validation using 'js-webshims'. This form is processed via php on the server. However, I do not have server-side validation. Only client-side validation through HTML5. My question: Can I…
redshift
  • 4,815
  • 13
  • 75
  • 138
0
votes
1 answer

Webshims lib: HTML5 web form validation not working in IE8

I'm new to HTML5 forms and getting them to work in older browsers. I am trying to get my simple HTML5 demo form to validate in IE8 using the Webshims Lib polyfill, but it does not seem to validate. As far a I can tell, I've followed the directions…
redshift
  • 4,815
  • 13
  • 75
  • 138
0
votes
1 answer

How to position a webshims datetime-local's popup using js?

I have an input positioned on the right of the screen. If the window is too little, part of the datepicker is outside of the screen. My webshims configuration is as follow: $.webshims.setOptions('forms-ext', { replaceUI: false, types:…
Gagaro
  • 752
  • 7
  • 17
0
votes
1 answer

Backbone Views and webshims for form values

What is the best way to make use of webshims in a backbone project? Is there a way to avoid using it globally and only loading it for a specific view?
user2961953
  • 155
  • 1
  • 2
  • 6
0
votes
1 answer

Comparing two text field values to avoid duplicates before submit using Custom validation from webshim

I am using webshim library, I need to compare two text field values to avoid duplicates and want to set custom validation message.
Subhan
  • 3
  • 3
0
votes
1 answer

JavaScript to enable new HTML5 button attributes: formaction, formmethod

I need to have different buttons in a form that submit the data to different actions. I could do this with the new HTML5 attributes of button formaction and formmethod: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button But those of…
Thomas Koch
  • 2,833
  • 2
  • 28
  • 36
0
votes
0 answers

html5 form field validation error on Safari 6 using Webshim

Required attribute is not working in Safari after using Webshim. I keep getting an error {"error": "Please use POST request"}.enter link description here
Mark Atia
  • 3
  • 4
0
votes
1 answer

jqueryMobile datebox and webshim + checkValidity()

Im using datebox and want some validation on my input if there isn't any value. Im using webshim and it work great if I remove…
thatsIT
  • 2,085
  • 6
  • 29
  • 43
0
votes
1 answer

After a form is filled once, I blank out the form before filling it the next time (new conversation), but the borders remain red

I have used webshims for html5 form validation in a single page app with multiple pagelets(divs). The forms are not submitted but local javascript is invoked after each conversation and collected data is posted . Next I iterate over all the fields…
dip7ul
  • 3
  • 1
0
votes
2 answers

Webshims lib with durandal updatePolyfill

I am trying to use Webshims lib in my durandal based SPA. Followed instructions on WebShims lib web site, included custom modernizr, jquery and the polyfill. All works great so long as the controls are not loaded dynamically either by knockout or…
Sujesh Arukil
  • 2,469
  • 16
  • 37
0
votes
1 answer

Webshims - Show invalid form fields on initial load

(Follow on questions from Placeholder Hidden) I'd like my form to validate existing data when it is loaded. I can't seem to get that to happen I jQuery.each of my controls and call focus() and blur(), is there a better way than this? I tried to…