Page 1 of 1

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

Posted: Sat Apr 27, 2013 8:53 pm
by Christine Stringfield

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?


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

Posted: Sat Apr 27, 2013 9:11 pm
by maxkatz

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)


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

Posted: Sat Apr 27, 2013 9:34 pm
by Illya Stepanov

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.


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

Posted: Sat Apr 27, 2013 9:54 pm
by Christine Stringfield

Looks like it is a Facebook issue, not Appery.

https://developers.facebook.com/bugs/...