Page 1 of 3

Back Button ACTUALLY Take You to Previous Page

Posted: Tue Feb 11, 2014 3:34 pm
by Mike6580064

I have the same link on two different pages. When activated from page A it navigates to page X. When activated from page B it navigates to page X as well.

Say a user navigates to page X from page A. When the user activates the "BACK" button on X, it should navigate back to page A. But what if the user came across page X from the link on page B? Is there a way to make the "BACK" button on page X navigate back to page B (without creating duplicate page X's with different "BACK" buttons)?


Back Button ACTUALLY Take You to Previous Page

Posted: Tue Feb 11, 2014 4:52 pm
by maxkatz

The standard jQuery Mobile back button takes you to the previous page in browser history. If you need a different behavior, you can define navigation on the back button.


Back Button ACTUALLY Take You to Previous Page

Posted: Tue Feb 11, 2014 4:57 pm
by Kateryna Grynko

Hi Mike,

Back button returns you to the previous page, analogically codehistory.back()/codeYou can disable default Appery.io back button and add your own button with any custom logic you need.

You can add any action on device "Backbutton" event. To disable device Back button: https://getsatisfaction.com/apperyio/...


Back Button ACTUALLY Take You to Previous Page

Posted: Tue Feb 11, 2014 6:33 pm
by Mike6580064

Where can I find this back button? Is this a command I enter under Action--Run JavaScript?

I have been placing the button component and running Event--Click, Action--Navigate to Page.


Back Button ACTUALLY Take You to Previous Page

Posted: Tue Feb 11, 2014 6:47 pm
by Kateryna Grynko

Hi Mike,

Please clarify, did you mean Android device Back button or Appery.io UI button?
[quote:]I have been placing the button component and running Event--Click, Action--Navigate to Page.[/quote]This is the correct approach. Just set any navigation you need.


Back Button ACTUALLY Take You to Previous Page

Posted: Tue Feb 11, 2014 6:57 pm
by Mike6580064

I'm referring to the Appery UI button.

My question is that if I have a link to page X on two different pages (A & B), is there a way to tell the button component (Back) to take me from page X back to the whichever page (A or B) where that link was originally clicked?


Back Button ACTUALLY Take You to Previous Page

Posted: Wed Feb 12, 2014 12:56 pm
by Maryna Brodina

Hello! Please try to add Back button through Header properties
Image


Back Button ACTUALLY Take You to Previous Page

Posted: Wed Feb 12, 2014 3:29 pm
by Mike6580064

Amazing. Thank you!


Back Button ACTUALLY Take You to Previous Page

Posted: Thu Feb 13, 2014 5:05 pm
by Mike6580064

I am using the JQM theme and have my header set to swatch A while having the "Back" button active.

In testing, when I activate the "Back" button, the button turns blue. How can I change this color?


Back Button ACTUALLY Take You to Previous Page

Posted: Thu Feb 13, 2014 7:42 pm
by Kateryna Grynko

Hi Mike,

This is the JQM style. If you don't like it you can use custom CSS to change it:
pre#ScreenName_mobileheader a:nth-child(1){
background: red;
}/preWhere 'ScreenName' is a name of your page.