-
Notifications
You must be signed in to change notification settings - Fork 882
$.afui.loadContent issue #919
Comments
I have a similar problem, loadContent does not seem to work properly: the seems to come from line 983-> |
I found the solution / workaround for this one, it seems that if you don't pass an anchor param to the loadContent method on line 667 it tries to create an anchor
however it fails, so what you need to do is pass the ID of an existing anchor from the dom, or create one than. Basically you need to do something like:
The last param "#test" is the ID of the anchor. Cheers! |
@icrisu I have the same problem! but when I pass the ID of an existing anchor and test it , loadContent does not seem to work properly: TypeError: anchor.getAttribute is not a function |
@GitCod-Man the above has worked for me, sorry I did not have your problem. As I recall I have dynamically created a div with an generated ID, and it worked. |
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
The text was updated successfully, but these errors were encountered: