Yes I reviewed that posting and doesnt really help me.
Yes I reviewed that posting and doesnt really help me.
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:
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?
Hi John, I'll search for a solution.
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.
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...
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..
I'll take a look.
Run the following:
codesetTimeout( function(){
geolocation1.execute({});
hideSpinner();
} , 30000);/code
yes i just tested it and finally works. Thanks.