I have a situation where I am executing some queries, execution can take time therefore I want to show some kind of loading screen or a custom gif while the execution is done.
I have a few options.
['cursor']='wait'
Popup with gif, show it for few seconds and then close it
I don't like the first one because it only acts on the control where we are clicking.
I want to use something that takes the whole screen for few moments.
Can I do the option 2?
I really don't know if I can use a custom gif in a view(popup) and how do I open it and close it from a single button,
e.g Button_1_clicked, open popup, 1,2,3,4,5 close popup automatically
I am looking for a solution where I don't have to use css. I like to do it via script.