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

Wouter J
  • 41,455
  • 15
  • 107
  • 112
sonu
  • 61
  • 1
  • 2
  • 7
  • [You need to link to jQuery](http://docs.jquery.com/Tutorials:Getting_Started_with_jQuery#Setup). Browsers don't just come with it yet. :) – Daniel Lyons Feb 29 '12 at 05:19
  • Hi..i have added the link also – sonu Feb 29 '12 at 05: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. – Daniel Lyons Feb 29 '12 at 05:49
  • 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 Feb 29 '12 at 09:56

1 Answers1

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.

Sid
  • 7,511
  • 2
  • 28
  • 41
  • 2
    Or, what is better, use the Google CDN (http://scriptsrc.net/) for loading jQuery with a local fallback: `` – Wouter J Feb 29 '12 at 10:11