Page 1 of 1

spinning loader don't show when invoking REST Services

Posted: Wed Jun 25, 2014 8:03 pm
by luke315774

I just notice this : when my application load and when I'm navigating between pages, there is a spinning loader showing and hiding automatically.

Is it supposed to do the same (show and hide automatically) between REST services invocation? Right now, my page shows up blank until the data of my services arrive.

Thank you


spinning loader don't show when invoking REST Services

Posted: Wed Jun 25, 2014 8:11 pm
by luke315774

I just notice that at some places in my app, it is showing and hiding successfully has I want it but not everywhere.

Where it was not working, the problem was I called the service on page load. I moved the call to "page show" and it seem ok.


spinning loader don't show when invoking REST Services

Posted: Wed Jun 25, 2014 8:30 pm
by Evgene Karachevtsev

Hello Luke,

This way you can show loader on the page with JavaScript:

code$.mobile.loading('show');/code

and here's how to hide it:

code$.mobile.loading('hide');/code


spinning loader don't show when invoking REST Services

Posted: Wed Jun 25, 2014 8:34 pm
by luke315774

Alright cool