Page 1 of 6
Page load/page show does not invoke service
Posted: Mon Jan 27, 2014 7:36 am
by Ralph Ngo
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.
Page load/page show does not invoke service
Posted: Mon Jan 27, 2014 7:42 am
by Maryna Brodina
Hello! Please check are there any errors in console when you invoke service on Page Show event.
Page load/page show does not invoke service
Posted: Mon Jan 27, 2014 8:12 am
by Ralph Ngo
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.
Page load/page show does not invoke service
Posted: Mon Jan 27, 2014 9:08 am
by Maryna Brodina
Please post the screenshot which shows how did you add event.
Page load/page show does not invoke service
Posted: Mon Jan 27, 2014 11:01 am
by Ralph Ngo
From the platform
From console log
Page load/page show does not invoke service
Posted: Mon Jan 27, 2014 12:10 pm
by Maryna Brodina
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.
Page load/page show does not invoke service
Posted: Mon Jan 27, 2014 3:51 pm
by Fabio
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.
Page load/page show does not invoke service
Posted: Mon Jan 27, 2014 7:36 pm
by Kateryna Grynko
Hi Fabio,
Probably you changed sources, then all the added handlers won't work. Did you change them?
Page load/page show does not invoke service
Posted: Tue Jan 28, 2014 12:48 am
by Ralph Ngo
Hi Maryna,
I checked. No service called. I tried with the button, and it called a service.
The button is just a debugging tool which should not available in production version
Page load/page show does not invoke service
Posted: Tue Jan 28, 2014 7:39 am
by Fabio
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?