Paul C
Posts: 0
Joined: Sat May 23, 2015 8:19 am

Master-detail page

Hi,
I implemented the master-detail page to show list of picture. When user click on the picture in the master page, the app will navigate to the detail page. My question is that when user click on the "Back button" to go back to master page, it always show the all items start from item #1.
In case my user click on the item #120, can I implement some code when user click "Back button" in the detail page, the master page will continue on the item #120 instead of the item #1?
Thanks.
Paul

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

Master-detail page

Hello Paul,

We are very sorry but custom app logic is outside the scope of our support, but you may try to implement the current logic:
create an array with the numbers of the images;
on pageload event (when the page will be showed for the first time) set some variable to the first number of this array;
remember what image was clicked and write its number to this variable;
when you get back to the master-detail page by clicking on back button position your page "near" this variable with .scrollTop() function;
the last code should be called on pageshow event.

Paul C
Posts: 0
Joined: Sat May 23, 2015 8:19 am

Master-detail page

Hi Evgene
Thanks for your help. I'll try it.
Paul

Return to “Issues”