Page 1 of 1

spinner gone after service end while navigating to other page

Posted: Fri Aug 30, 2013 8:57 am
by Ram

Hi All,

I have a login page that has a rest service communicating with my webservice, in case of success i navigate to a different page, I added showSpinner(); before calling the service, added showSpinner(); at the end of the code for both success & complete events for the same service too but once the service is successfully ends the spinner is gone and there's "freezing" time between the login page is displayed (after the service has successfully executed) and the other page displayed... please have a look at the screen capture video

thx much in advance!
Best,
R.


spinner gone after service end while navigating to other page

Posted: Fri Aug 30, 2013 1:57 pm
by Maryna Brodina

Hello! Sorry for delay. When service call completed spinner hides automatically. Try this code:
codesetTimeout(function(){showSpinner()}, 1);/code


spinner gone after service end while navigating to other page

Posted: Fri Aug 30, 2013 3:08 pm
by Ram

thank you.

we are almost there :)

so now i get the spinner until page change however the spinner itself not spinning the whole time but frozen for most of the time... please have a look at the screen captured video

TIA!


spinner gone after service end while navigating to other page

Posted: Fri Aug 30, 2013 3:47 pm
by Anton Artyukh5836028

Hi Ram,

If you try to test this in other browser, it will looks different. Spinner is GIF-animated image. Different browsers, I think even the same browser in different OS, is renders it on its own specific way. This is right and for devices.