deveu
Posts: 0
Joined: Tue Apr 08, 2014 4:10 am

showing previous page for small time

at load time i hide the page and showing again at last service completed
so I am getting whole page content at a time

but problem at page show that is showing for small sec and hiding and loading again
I want to remove showing for small sec

in previous ticket
suggest to hide before moving another page and working nice
but in ipone page is hiding for ever
and in web browser that is ok

Appery("Reward").hide()
Appery.navigateTo('ThankYou', { });

Alena Prykhodko
Posts: 0
Joined: Tue Apr 09, 2013 7:36 am

showing previous page for small time

Hello,

Could you please tell exact steps to reproduce and device iOS version you have tested?

deveu
Posts: 0
Joined: Tue Apr 08, 2014 4:10 am

showing previous page for small time

I am testing using ipad 1 ios 5.1.1 and also ipad 2 ios 7.1.1
problem is in both iphone and web

now there is
Appery.navigateTo('ThankYou', { });

but I need this & showing black page in iphone but in web that is ok
Appery("Reward").hide()
Appery.navigateTo('ThankYou', { });

how may i hide page just before leaving
so that not show black page

deveu
Posts: 0
Joined: Tue Apr 08, 2014 4:10 am

showing previous page for small time

On app
http://appery.io/app/view/2aa23e01-a1...

The steps that I follow via ipad are
1) click login
2) using keypad enter number 0477-777-777
3) click reward now
4) click confirm

I cycle through these steps and between each page transition it is not smooth on the ipad like it is on web.

Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

showing previous page for small time

Hi Deveu.

Please try this solution:

1 Create new JS asset and populate it with following code: http://prntscr.com/3ph5a2/direct

precode

function NavigateWithHideCurrentPage(currentPageName, nextPageName){
var onPageShow = function(){
jQuery("#" + currentPageName).css("visibility", "visible");
jQuery(document).unbind('pageshow', onPageShow);
};

Code: Select all

 jQuery(document).bind('pageshow', onPageShow); 

 Appery(currentPageName).css("visibility", "hidden"); 

 navigateTo(nextPageName); 

};

/code/pre

2 When you need to navigate from "firstCurrentPage" page to "secondNextPage" use following code:

precode

NavigateWithHideCurrentPage("firstCurrentPage", "secondNextPage");

/code/pre

Regards.

deveu
Posts: 0
Joined: Tue Apr 08, 2014 4:10 am

showing previous page for small time

Your code is not working
but I fixed by this way

after last service completion
Appery("mobilecontainer").show();
and at page leave
Appery("mobilecontainer").hide();
Appery.navigateTo('Checkin', {});

Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

showing previous page for small time

Thanks for update.

Return to “Issues”