John Herdean
Posts: 0
Joined: Tue May 14, 2013 3:56 am

run a service every minute??

Yes I reviewed that posting and doesnt really help me.

John Herdean
Posts: 0
Joined: Tue May 14, 2013 3:56 am

run a service every minute??

This JS only works once if I run it on click of a button:

$.mobile.loading( "hide" );

However, Im running a service every so often and I dont want the spinner (or progressbar) to show up every time the service is invoked. The first time when the user clicks the button is fine, but no more after that. SO, I ran this JS at # 2 Complete:

Image

and still doesnt work. I even tried the css code on the previous link and all that does is hide the progressbar from everything. Thats not what I want to do.

Any ideas?

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

run a service every minute??

Hi John, I'll search for a solution.

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

run a service every minute??

After you run service you should immediately run: codehideSpinner(); /code
You can do this in the second line inside of your timer. Using styles won't help.

John Herdean
Posts: 0
Joined: Tue May 14, 2013 3:56 am

run a service every minute??

something strange happened after i added that css code:

.ui-loading {
display:none;
}

thats the code that stopped all the spinners from coming up from anywhere. I removed the class name to the attached button and the css file and I still get my Android phone to go kinda nuts. Most of the buttons the spinners dont come up, but ironically the original button i attached that css class to works just fine...

John Herdean
Posts: 0
Joined: Tue May 14, 2013 3:56 am

run a service every minute??

then i tried your last code to my timer to look like this:

setTimeout( "geolocation1.execute({})" , 30000);
hideSpinner();

the timer works but the spinner still comes up every 30 seconds and many other buttons on my Android phone will not make the spinner come up (this is with or without the hideSpinner(); line)

Now I got 2 problems: 1) most of the buttons spinners dont work, and 2) the service I dont want to spin - spins..

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

run a service every minute??

I'll take a look.

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

run a service every minute??

Run the following:
codesetTimeout( function(){
geolocation1.execute({});
hideSpinner();
} , 30000);/code

John Herdean
Posts: 0
Joined: Tue May 14, 2013 3:56 am

run a service every minute??

yes i just tested it and finally works. Thanks.

Return to “Issues”