andi
Posts: 0
Joined: Sat May 25, 2013 9:32 am

No Back button with Appery.navigateto?

Appery.navigateTo('page');

no back button on new page?

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

No Back button with Appery.navigateto?

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

andi
Posts: 0
Joined: Sat May 25, 2013 9:32 am

No Back button with Appery.navigateto?

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

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

No Back button with Appery.navigateto?

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

andi
Posts: 0
Joined: Sat May 25, 2013 9:32 am

No Back button with Appery.navigateto?

works perfect!
thanks :)

Bajaru
Posts: 0
Joined: Sat May 11, 2013 6:46 am

No Back button with Appery.navigateto?

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.

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

No Back button with Appery.navigateto?

Hi Brian,

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

Bajaru
Posts: 0
Joined: Sat May 11, 2013 6:46 am

No Back button with Appery.navigateto?

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?

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

No Back button with Appery.navigateto?

Hi Brian,

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

Bajaru
Posts: 0
Joined: Sat May 11, 2013 6:46 am

No Back button with Appery.navigateto?

Thanks. It works now.

Return to “Issues”