Appery.navigateTo('page');
no back button on new page?
Appery.navigateTo('page');
no back button on new page?
What exactly are you trying to do.. ? It's not clear from the question.
if i navigate to the new page with appery.navigateto than i didn't get the back button (i mean the back button in the header of the page) on the new page.
if i navigate with the predfined action than it works ....
the back button from the device works fine
code
Appery.navigateTo('page');
/code
is just a wrapper for jQuery navigation. Code above will do a full page refresh and you won't see a back button (as there is no history).
Use this to navigate via Ajax:
code
Appery.navigateTo('page', {});
/code
or
code
Appery.navigateTo('page', {transition: 'slide'});
/code
works perfect!
thanks
Instead of 'page' can a local variable be used?
For example:
On startScreen load, set local storage variable sPgHome="startScreen"
then on other screens use the following event on a button:
Appery.navigateTo(sPgHome, {transition: 'slide'});
Anyway, that's what I'm trying but it's not quite working yet.
Hi Brian,
Use the following code:
codelocalStorage.setItem("pageNameVariable", "PageNameValue");/code
On the another page use:
codeAppery.navigateTo( localStorage.getItem( "pageNameVariable" ) , {transition: 'slide'} );/code
Yeah... I'm still not getting it to work...
Above it's says "Use this to navigate via Ajax: "... is that different than "Run Javascript" when an event is triggered?
Hi Brian,
This is the same. Run the following JavaScript code:
codeAppery.navigateTo('page', {});/code
Thanks. It works now.