- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I started a basic HTML5 project with App Framework and added some pages and sprite buttons to swap between pages, but the javascript console says $ unknown command, the usual jQuery library not being loaded kind of error.
Is this a bug or am I doing something wrong? It is just the most basic of projects and I seem to be running into problems already. I think swapping to one of the other frameworks made it work but I only need the basic App Framework.
- Tags:
- HTML5
- Intel® XDK
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Do you get this in the javascript console in your browser/XDK debugger or do you see it in the Javascript console in the XDK editor (JSHint problem)?
If the last one is the case, add /*global $:false */ to the top of the javascript.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Can you post your code? Are you using App Designer?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Are you including the jQuery JavaScript files explicitly in the HTML file or programatically in your JavaScript files?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
App Designer, in JSHint. I know about the flags and such, but this is a showstopper in something which I thought was supposed to work without expert tips because it is App Designer, why need arcane code knowledge in the App Framework which seems like the recommended option?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
If it is only a JSHint warning, you can ignore it. Or, you can, as Elroy suggested, add a Javascript comment to the top of the offending .js file:
/*global $ */
![](/skins/images/D3C0B914909A6564BBB97F4AD1ED1973/responsive_peak/images/icon_anonymous_message.png)
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page