Christine Stringfield
Posts: 0
Joined: Wed Apr 03, 2013 4:35 am

Page Load event not triggered when navigating to a page via Javascript

Hello,

I am using Javascript to navigate to a page if a condition is true:

Appery.navigateTo('share', {reloadPage: true});

The app does navigate to my "share" page, however it looks as though my services that are supposed to be invoked on the "share" page load event are not occuring, so my "share" page is not being populated with data.

Any suggestions on how to fix this?

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

Page Load event not triggered when navigating to a page via Javascript

When you navigate to the second page, check in the console if there are any errors or if the service was actually invoked but there is an error (Network tab)

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

Page Load event not triggered when navigating to a page via Javascript

Hi - We tested should be working Ok!
Perhaps the error occured in Rest Service. You can try to check it by adding event "Error" to a Rest Service with noticeable effect (for example JS function "alert").
Perhaps on a Load event added several Actions, including JavaScript action. In this case the error in JavaScript code can lead to unreachable Rest Services.

Return to “Issues”