Page 1 of 1

No Back button with Appery.navigateto?

Posted: Thu Jun 06, 2013 12:43 am
by andi

Appery.navigateTo('page');

no back button on new page?


No Back button with Appery.navigateto?

Posted: Thu Jun 06, 2013 12:46 am
by maxkatz

What exactly are you trying to do.. ? It's not clear from the question.


No Back button with Appery.navigateto?

Posted: Thu Jun 06, 2013 12:53 am
by andi

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


No Back button with Appery.navigateto?

Posted: Thu Jun 06, 2013 12:59 am
by maxkatz

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


No Back button with Appery.navigateto?

Posted: Thu Jun 06, 2013 1:02 am
by andi

works perfect!
thanks :)


No Back button with Appery.navigateto?

Posted: Thu Jun 06, 2013 2:13 pm
by Bajaru

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.


No Back button with Appery.navigateto?

Posted: Thu Jun 06, 2013 2:36 pm
by Kateryna Grynko

Hi Brian,

Use the following code:
codelocalStorage.setItem("pageNameVariable", "PageNameValue");/code
On the another page use:
codeAppery.navigateTo( localStorage.getItem( "pageNameVariable" ) , {transition: 'slide'} );/code


No Back button with Appery.navigateto?

Posted: Wed Jun 19, 2013 5:24 pm
by Bajaru

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?


No Back button with Appery.navigateto?

Posted: Wed Jun 19, 2013 6:34 pm
by Kateryna Grynko

Hi Brian,

This is the same. Run the following JavaScript code:
codeAppery.navigateTo('page', {});/code


No Back button with Appery.navigateto?

Posted: Thu Jun 20, 2013 12:16 pm
by Bajaru

Thanks. It works now.