Software Archive
Read-only legacy content
17061 Discussions

Cannot change page with App Framework V3.0

Nick_F_2
New Contributor III
255 Views

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

 

0 Kudos
4 Replies
Elroy_A_Intel
Employee
255 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.

0 Kudos
Nick_F_2
New Contributor III
255 Views

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

0 Kudos
PaulF_IntelCorp
Employee
255 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.

0 Kudos
Nick_F_2
New Contributor III
255 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.

0 Kudos
Reply