Page 1 of 1

Cant make the loading spinner to hide

Posted: Fri Apr 10, 2015 6:45 pm
by Nicklas

I feel I have tried everything that I can find in forum and doc, but I cant make the loading spinner to hide.

Can someone give me a Script to hide the spinner?

I have a service Invoke that refresh automatically every 10 sec, and don't want the spinner to show everytime.

Thanks


Cant make the loading spinner to hide

Posted: Fri Apr 10, 2015 8:38 pm
by Serhii Kulibaba

Hello Nicklas,

You can hide spinner with help of JS:

hideSpinner();


Cant make the loading spinner to hide

Posted: Fri Apr 10, 2015 9:02 pm
by Nicklas

I have tried that, but I can make it work!
I have only tested it in the browser-tester. Do I have to download the app to test it correctly?


Cant make the loading spinner to hide

Posted: Fri Apr 10, 2015 9:16 pm
by Evgene Karachevtsev

Nicklas,

Yes, could you please try this in your installed on a device app?


Cant make the loading spinner to hide

Posted: Fri Apr 10, 2015 11:41 pm
by Nicklas

But should I put it in page load javascript?

And should it be something insde the "()"?

I have a small javascript in pageload, and that one works fine:

code
var renew = setInterval(function()
{restservice2.execute({}); }, 20000);
/code

Can I implement the hideSpinner(); in this one?


Cant make the loading spinner to hide

Posted: Sun Apr 12, 2015 11:29 pm
by Yurii Orishchuk

Hi Nicklas,

Please try following js code:

pre

var renew = setInterval(
function(){

Code: Select all

      restservice2.execute({}); 
      hideSpinner(); 

}, 20000 

);

/pre

Regards.


Cant make the loading spinner to hide

Posted: Mon Apr 13, 2015 11:10 pm
by Nicklas

Thank you very much! :)