5
votes

I am trying to use jgesture plugin for pinchopen and pinchclose events. but i am getting the following error:

ReferenceError: Can't find variable: jQuery

does any one knw the solution? Thanks

1
You need to link to jQuery. Browsers don't just come with it yet. :) - Daniel Lyons
Hi..i have added the link also <script src="../jquerymobile/jgestures.min.js" type="text/javascript"></script> - sonu
If you're still having trouble after following @Sid's advice, you should validate the page and come back here after you fix the validation errors. - Daniel Lyons
Are you sure you have loaded jQuery (so jquery-1.7.1.min.js or something in that direction) before you loaded jgestures? - Wouter J

1 Answers

3
votes

Link to jQuery from one of the hosted locations, e.g.:

http://code.google.com/apis/libraries/devguide.html#jquery

Or downloaded it from jquery.com and put it in your web server path and include in your HTML files.