Ralph Ngo
Posts: 0
Joined: Fri Dec 27, 2013 1:07 am

Page load/page show does not invoke service

I am trying to implement a similar app to this tutorial (http://docs.appery.io/tutorials/build...), however, when I use Page load event, the service is not invoking. I tried to invoke the service via a button and it's working.

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Page load/page show does not invoke service

Hello! Please check are there any errors in console when you invoke service on Page Show event.

Ralph Ngo
Posts: 0
Joined: Fri Dec 27, 2013 1:07 am

Page load/page show does not invoke service

Hi Maryna,

How to get to it? I tried with browser testing and the result is as below.

event.returnValue is deprecated. Please use the standard event.preventDefault() instead.

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Page load/page show does not invoke service

Please post the screenshot which shows how did you add event.

Ralph Ngo
Posts: 0
Joined: Fri Dec 27, 2013 1:07 am

Page load/page show does not invoke service

From the platform
Image

From console log
Image

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Page load/page show does not invoke service

Please check in console on Network tab is the service called? Open console, click F5 to reload page, you'll see all calls on Network tab.

Fabio
Posts: 0
Joined: Mon Jan 20, 2014 5:06 pm

Page load/page show does not invoke service

Some issue for me, on the network tab is all ok and no request is fired. If I click to button then is all ok and the service fires correctly and returns data.
I use a page template and i have a Page Load event on top of it. In the child page I Invoke the service on Page Show Event.
I also try device ready, nothing.

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Page load/page show does not invoke service

Hi Fabio,

Probably you changed sources, then all the added handlers won't work. Did you change them?

Ralph Ngo
Posts: 0
Joined: Fri Dec 27, 2013 1:07 am

Page load/page show does not invoke service

Hi Maryna,

I checked. No service called. I tried with the button, and it called a service.

Image

The button is just a debugging tool which should not available in production version

Fabio
Posts: 0
Joined: Mon Jan 20, 2014 5:06 pm

Page load/page show does not invoke service

if do you mean the html sources then all is intact...I added some file resources few weeks ago but no edited html/javascript files

Can i share the app whit you?

Return to “Issues”