prashant purohit
Posts: 0
Joined: Sat Aug 31, 2013 11:00 am

Navigation to another page in application with full screen refresh.

Hi,

I want to navigate to another page after 3000 ms in my first page. Also, I have to use full screen refresh on my second page while navigating. I am using the below JS code but it doesn't work:

setTimeout("Appery.navigateTo('login_screen', {transition: 'none', reloadPage: true})" , 3000);

Please suggest

Igor
Posts: 0
Joined: Tue Apr 02, 2013 12:05 pm

Navigation to another page in application with full screen refresh.

Hi,

How do you invoke this code? Please try to use this code on button click or screen load event. You code is correct, it works for me.

prashant purohit
Posts: 0
Joined: Sat Aug 31, 2013 11:00 am

Navigation to another page in application with full screen refresh.

Hi,

There are two screens:

  1. splash_screen

  2. login_screen

    Script is executed on the "Page show" event of splash screen. Its moving to login screen after 3000 ms but full page refresh doesn't happen.

    I tried it for both Load event and button click , but the script doesn't full refresh the login_screen. Please let me know , if I need to share the project.

Igor
Posts: 0
Joined: Tue Apr 02, 2013 12:05 pm

Navigation to another page in application with full screen refresh.

Could you post your public app link so we can test it?

Igor
Posts: 0
Joined: Tue Apr 02, 2013 12:05 pm

Navigation to another page in application with full screen refresh.

There is a JS error. Please try to debug your app and fix the error. It could be the problem why your page doesn't refresh.

prashant purohit
Posts: 0
Joined: Sat Aug 31, 2013 11:00 am

Navigation to another page in application with full screen refresh.

Hi,

I again checked it and don't thin that this is because of any JS error. These is only one JS on the splash_screen, which is the one mentioned above.

I have added a button on splash_screen and on click navigating to login_screen with "use full screen refresh". This way it works absolutely fine. However, the script at the same time doesn't work.

Request you to pls again check the link and suggest.

Igor
Posts: 0
Joined: Tue Apr 02, 2013 12:05 pm

Navigation to another page in application with full screen refresh.

Let's fix the JS error first. Project tab - JavaScript- Facebook_utils.js

On line 8 replace you code:
pre
if(params.indexOf('#')>=0) {
/pre
with next one:
pre
if(params.indexOf('#')=0) {
/pre
When you fix this error, Please test app one more time. Let us know about results.

prashant purohit
Posts: 0
Joined: Sat Aug 31, 2013 11:00 am

Navigation to another page in application with full screen refresh.

sorry, but I couldn't understand. Both the above mentioned codes are same

Igor
Posts: 0
Joined: Tue Apr 02, 2013 12:05 pm

Navigation to another page in application with full screen refresh.

Sorry, copy/paste error. Your string is
precode
if(params.indexOf('#')>=0) {
/code/pre

Return to “Issues”