Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Nick_F_2
New Contributor III
57 Views

Cannot change page with App Framework V3.0

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 (2)
0 Kudos
4 Replies
Elroy_A_Intel
Employee
57 Views

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.

Nick_F_2
New Contributor III
57 Views

I have done that, that is where the error is coming from the debug console.

PaulF_IntelCorp
Employee
57 Views

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.

Nick_F_2
New Contributor III
57 Views

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.

Reply