Toggle navigation
About
What is AppDeck ?
What is AppDeck Cloud Services?
AppDeck vs PhoneGap
AppDeck's apps
Download
Help
Documentation
Support
Cloud
Sign in
Register
HTML5 API
Overview
Buttons
Catch Link
History
Loading
Menu
Snackbar
Page/Navigation
Photo Browser
Pop Over
Pop Up
Barcode Scanner
Vibrate
Message
Preferences
Reload
Cache
Scroll
Select
Share
Slide
Demography
Profile/Live Configuration
Device Information
Event
Channels
Facebook/Twitter
Service
Advanced
Dynamic Menu
Json
Push Notification
Prefetch/Preload Page
Embed Ressource
Advertisement
FAQ
Tips
About
Page/Navigation
Navigation: open/push/pop a page can be control using Javascript.
Javascript API
// open a new page : page2.php app.page.push("page2.php"); // go back to previous page if exist app.page.pop(); // go back to root page if possible app.page.poproot(); // discards all current pages and load a new one as root app.page.root("index.php"); // discards all current pages and load a new one as root and reload left/right menu if exist app.page.rootandreload("index.php"); // you can also change the way your app deal with url with this hook // it allows you to rewrite all opened URLs app.client.rewriteURL = function(url) { return "http://www.appdeck.mobi/?url="+url; };
Complete Example
AppDeck
Page
Open sub page via javascript