Hey Max...
How do I Hide, disable or replace Tizzgi ajax loading thingy..?
On some Rest services I dont want the overlay with loading gif showing.
Other times I want custom ones.
Tried all the Jquery $mobile... with no luck.
thanks
Hey Max...
How do I Hide, disable or replace Tizzgi ajax loading thingy..?
On some Rest services I dont want the overlay with loading gif showing.
Other times I want custom ones.
Tried all the Jquery $mobile... with no luck.
thanks
Hello! You can do this using hideSpinner(), showSpinner() functions. For example:
function showSpinner() {
alert('ajax start');
}
But this function will be applied for all services in App.
Thanks Marina !
Forgive my stupidity... Are you saying do it like this?
code
function hideSpinner() {
MyRestService.execute({});
}
/code
showSpinner() function is called before ajax loading, hideSpinner() - after. It's a standard implementation. If you will use
function hideSpinner() {
MyRestService.execute({});
}
you'll get infinite loop.
It's a very tricky situation, because if you try to rewrite standard implementation - it's impossible to predict the future behavior of the application.
Ok. So I cant really implement hideSpinner in Tiggzi... or Jquery for that matter?
Thanks
You can do this, but you have to use this function in a right way - in "show" you can just display your image, in "hide" - you have to hide it. To place there something else is undesirable.
Thanks Marina...
I'm confused thou. lol
So are u saying I need to :
function showSpinner() {
Put my own image or transparent image here
}
If that is the case what image name.
Maybe a example would help me.
I would rather not have any grayed out screen with spinner anytime in my app.
Thanks
Try this to hide it:
code
#ajaxBusy {display: none !important;}
/code
Ok Put this in a custom CSS..?