Comments (4)
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
anchor = anchor || document.createElement("a"); //Hack to allow passing in no 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:
AppetitMobileApp.prototype.openItem = function(itemID) { $.afui.loadContent("#item", false, false, 'up-reveal', '#test'); };
The last param "#test" is the ID of the anchor.
Cheers!
from appframework.
I have a similar problem, loadContent does not seem to work properly:
$.afui.loadContent('#item'); af.ui.js:983 Uncaught TypeError: from.end(...).run is not a function(…)
the seems to come from line 983-> }).run(transition+"-out");
from appframework.
@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
var forceRefresh=anchor.getAttribute("data-refresh");
do you have this problem ?
from appframework.
@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.
from appframework.
Related Issues (20)
- panelload triggered twice on "back" action HOT 2
- Variable mistyped in adding $.afui.showMask() timeout parameter
- Header buttons doesn't work HOT 1
- hao to add my icon
- ajax problem
- Side menu fail in iOS if fastclick is not installed
- IDE crashes when the app designer is in use HOT 9
- cadastro
- Where is the documentation ? HOT 3
- Docs HOT 2
- $.afui.loadAjax issues HOT 1
- couldn't scroll? pc web can scroll but on the iphone safari couldn't
- Question: "af.ui.js:622 Uncaught ReferenceError: timeout is not defined", why? HOT 2
- how to pass value between two pages? HOT 1
- Handling of 'touchstart' input event was delayed HOT 1
- data-footer="none" not hiding footer
- I doubt that I found some bugs, but can not confirm...
- Why I'cant use Custom Fonts? HOT 1
- How can i add a search box?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from appframework.