5

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

4
  • You need to link to jQuery. Browsers don't just come with it yet. :) Commented Feb 29, 2012 at 5:19
  • Hi..i have added the link also <script src="../jquerymobile/jgestures.min.js" type="text/javascript"></script> Commented Feb 29, 2012 at 5:29
  • 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. Commented Feb 29, 2012 at 5:49
  • Are you sure you have loaded jQuery (so jquery-1.7.1.min.js or something in that direction) before you loaded jgestures? Commented Feb 29, 2012 at 9:56

1 Answer 1

3

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.

Sign up to request clarification or add additional context in comments.

1 Comment

Or, what is better, use the Google CDN (scriptsrc.net) for loading jQuery with a local fallback: <script>window.jQuery || document.write(unescape('%3Cscript src="path/to/jquery.min.js"%3E%3C/script%3E'))</script>

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.