- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
When trying to load a new page I get the following error:-
Uncaught TypeError: Cannot read property 'loadContent' of undefined
(Anonymous Function)
My code is:-
$.afui.loadContent("uib_page_1",false,false,"slide");
Also get error:-
Uncaught TypeError: Cannot read property 'getAttribute' of null appframework.ui.min.js:46
g.load Ajax appframework.ui.min.js:46
g.loadContent appframework.ui.min.js:41
(anonymous function) app.js:98
- Tags:
- HTML5
- Intel® XDK
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I suggest trying to evaluate your application using the debugging functionality within the Emulate, Test or Debug tab. When mixing manual code with the designed-created code, you will have to try multiple id configurations as the design-created code creates nested elements.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have done that, that is where the error is coming from the debug console.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
It looks like your App Framework JS files are not getting loaded. Are you trying to load them via a CDN or other network location? Make sure they are local files in your app project directory (within the www folder) and load them as local files in index.html file, do not load them over the network.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Paul
This is a new project created from a blank template in XDK. I gave not changed anything or done anything different from any other project. All files are located locally on the dev PC.
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page