javascript - Strange behaviour of Parsley.js in Safari -



javascript - Strange behaviour of Parsley.js in Safari -

so working parsley.js. problem is, think is, it's not working cross browser safari.

first bug: have input can type numbers. looks this:

input#mtlbeitrag.pull-right(data-type="number", name="vb", value="#{calc.vb}", required="required", min="0")

when type "1000", parsley create number "1.000". problem because parsing number integer. algorithm parses "1.000", supposed "1000" "1.0".

second bug: parsley ignoring require tag. not popup-messages not working , displayed list-element. no, lets user submit form wrong inputs.

my question is: these known bugs or did implement wrong way? can confirm bugs safari?

on google chrome, non of these errors occure.

also, there better, cross-browser library same?

ps: when test on safari, nil happens.

is possible using html5 form validation , forgot add together novalidate enclosing form tag? if novalidate not found html5 form validation take on , overwrite whatever parsley have done...

i believe in fallbacks include this:

$("form.js-validate").attr("novalidate","novalidate").parsley(); ^

that way if js not loaded reason html5 validation fallback. (note in case must remove data-validate="parsley" form or utilize $("form.js-validate").attr("novalidate","novalidate") on load)

just fyi: reason safari fails because html5 validation "laggy".

old question perhaps bearded net traveler helped

javascript safari mobile-safari parsley.js

Comments

Popular posts from this blog

web services - java.lang.NoClassDefFoundError: Could not initialize class net.sf.cglib.proxy.Enhancer -

Accessing MATLAB's unicode strings from C -

javascript - mongodb won't find my schema method in nested container -