RobinHerbots / Inputmask

Input Mask plugin
https://robinherbots.github.io/Inputmask/
MIT License
6.39k stars 2.17k forks source link

Problem using inputMask #1745

Open padoramix opened 6 years ago

padoramix commented 6 years ago

Hi Robin,

i have an issue using inputmask in a website. I got this error :

SCRIPT5021: Plage incorrecte dans le jeu de caractères

I can't understand from where it cames, i already used inputmask in some websites but i never got this issue. My page is UTF-8 and i load jquery 1.12.4 before loading the inputmask lib.

Maybe you have an idea to know where to look to try to solve this problem.

Thanks in advance. P4d

RobinHerbots commented 6 years ago

@p4d ,

The first google hit gives me https://msdn.microsoft.com/fr-fr/library/29xff710(v=vs.94).aspx

Do you use some custom regex or something. Can you reproduce this in a jsfiddle?

padoramix commented 6 years ago

Hello, i did the same research because i wanted to find a solution.. :) But, this doesn't solve my problem, in fact, i use this line to put the mask on the input i want to be masked :

Jsfiddle link : https://jsfiddle.net/fantop4d/h5L2fyjg/

I already use that kind of mask in other projects and i don't have any problem, i can't find why now and in this project i have this issue.. :(

Waiting to read u.. P4d.

RobinHerbots commented 6 years ago

@p4d ,

Can you try with version 3.3.11 instead of 3.3.4?

padoramix commented 6 years ago

I tried.. but i have an error line 1484 from the code of input mask.

I don't get it.. :( I use only "999" as filter..

I've used it in another website and nothing hapenned, it all just works perfectly..

RobinHerbots commented 6 years ago

@p4d ,

Which file have you included in the scripts?

Have a try with https://jsfiddle.net/h5L2fyjg/3/

padoramix commented 6 years ago

With the latest version it works.

But the option showMaskOnFocus and showMaskOnHover does not influence the behaviour of the input, so the mask is still showing up when i focus or hover the fields.

I don't know from where it comes, but the options are not working well..

Thanks for your time on my main problem.. I'll come back to tell you wether i succeed in making the options works ;)

P4d.