Mottie / Keyboard

Virtual Keyboard using jQuery ~
http://mottie.github.io/Keyboard/
Other
1.78k stars 723 forks source link

Virtual Keyuboard with jquery 1.7 #586

Closed mostafa358 closed 7 years ago

mostafa358 commented 7 years ago

how can i use this nice keyboard with jquery 1.7 or less? i cant use jquery 1.8 or higher

Mottie commented 7 years ago

Hi @mostafa358!

Hmm, it looks like I used a .prop() in the code which is only available in jQuery v1.6+. So, I either need to work around that to change the documentation which states that jQuery v1.4.3+ is supported.

I set up this demo which is using jQuery 1.7 without any problems. Make sure to include the appropriate version of jQuery UI, if you're using it, or the positioning won't work correctly.

mostafa358 commented 7 years ago

Thanks For Your Answer. But My Problem does'n Solve, I use Dojo and Jquery 1.7 and when i use this sample i have error in page. in other way i know dojo and jquery 1.8 or higher confilct

Mottie commented 7 years ago

What error?

mostafa358 commented 7 years ago

i screen shot from my error.

pic1 in this picture u see $ is not Defined But Picture in Below shows the Jquery and other file are in my Project

pic2

usually i see multipleDefine Error Because Jquery Confilct with Dojo and i cant Handeled. what Your Opinion?

Mottie commented 7 years ago

Oh, it appears that jQuery is being loaded after the keyboard. Load jQuery before jQuery UI in that list and it should start working properly.

mostafa358 commented 7 years ago

I found one thins. i add Jquery and Jquery.ui and that didnt have problem but when i add jquery.keyboard this error is occured. pic4 this error show: jquery.keyboard are conflict with dojo on a command in jquery.keyboard. Can You Check This?

Mottie commented 7 years ago

The typing extension is inside of an enclosure, so it doesn't depend on the jQuery $ definition. The only way to get that error, I think, is due to jQuery not being defined. Please make sure the typing extension is loaded after the keyboard plugin.

I'll have this fix available by the weekend.

mostafa358 commented 7 years ago

<script type="text/javascript" src="/js/keyboard/jquery.min.js"></script> <script type="text/javascript" src="/js/keyboard/jquery-ui.min.js"></script> <script type="text/javascript" src="/js/keyboard/jquery.keyboard.js"></script> <script type="text/javascript" src="/js/keyboard/jquery.keyboard.extension-typing.js"></script> <script type="text/javascript" src="/js/keyboard/jquery.mousewheel.js"></script>

this code i write for insert this file and ordering is shows. first jquery then other.

thanks for your support