Hi,
Is it possible to show ajax loading panel using js?
Let's say I want to start some heavy client side operation (not ajax call), and I would like to indicate user that something is going on.
For example:
You can see from above that I tried something along showing hiding without much success, any thoughts?
Regards
Luka
Is it possible to show ajax loading panel using js?
Let's say I want to start some heavy client side operation (not ajax call), and I would like to indicate user that something is going on.
For example:
function heavyAction() { |
ShowLoadingPanel(true); |
Do some stuff .. |
... |
... |
ShowLoadingPanel(false); |
} |
function ShowHideLoadingPanel(show) { |
var objGrid = $find("<%= RadGrid1.ClientID %>"); |
var objLoadPanel =$get("<%= RadAjaxLoadingPanel1.ClientID %>"); |
if (show) { |
objLoadPanel.style.height = document.documentElement.scrollHeight + "px"; |
objLoadPanel.show(objGrid._masterClientID); |
} |
else |
objLoadPanel.hide(objGrid._masterClientID); |
} |
} |
Regards
Luka