1 decade ago by riceje7
I am trying to use the jGestures jQuery plugin in a project i'm working on and when I try to run the app through Ejecta on my iPhone I get a TypeError upon importing the jQuery library:
and then a ReferenceError on the jGestures saying it can't finds the jQuery variable:
and finally I get another ReferenceError when I try using the jGesture library in my main.js:
I know what they all are saying, what i don't know is why jQuery won't load properly in Ejecta, however if i run the same code but in the context of my web browser on my laptop, everything loads all hunky-dory and the code runs as it should. Is there something about not being able to use other libraries like jQuery with Ejecta, that I don't know about or isn't in the docs? Any help would be greatly appreciated!
2012-11-19 15:29:49.325 Stardom[12949:907] TypeError: 'undefined' is not a function (evaluating 'n.setAttribute("className","t")') at line 2 in lib/game/plugins/jquery-1.8.2.min.js
and then a ReferenceError on the jGestures saying it can't finds the jQuery variable:
2012-11-19 15:29:49.329 Stardom[12949:907] ReferenceError: Can't find variable: jQuery at line 18 in lib/game/plugins/jgestures.min.js
and finally I get another ReferenceError when I try using the jGesture library in my main.js:
2012-11-19 15:29:49.838 Stardom[12949:907] ReferenceError: Can't find variable: $ at line 5 in lib/game/main.js
I know what they all are saying, what i don't know is why jQuery won't load properly in Ejecta, however if i run the same code but in the context of my web browser on my laptop, everything loads all hunky-dory and the code runs as it should. Is there something about not being able to use other libraries like jQuery with Ejecta, that I don't know about or isn't in the docs? Any help would be greatly appreciated!