I have some JScript that does some client side stuff and while it is doing that I want to show the RadLoadingPannel that is shown when AJAXing goes on on the page.
I added the following two functions which I would have thought would achieve this but it does nothing,
You will notice they are completely separate from AJAX events (which is what I want).
I just want a client-side way to indicate to the user that something is loading without using AJAX (because it's so dam slow).
The following works but looks very messy,
I added the following two functions which I would have thought would achieve this but it does nothing,
var radLoadingPanelContent = null; |
var currentUpdatedControl = null; |
function showLoadingGraphic() { |
radLoadingPanelContent = $find("<%=radLoadingPanelContent.ClientID %>"); |
currentUpdatedControl = "<%=divMainContent.ClientID %>"; |
radLoadingPanelContent.show(currentUpdatedControl); |
} |
function hideLoadingGraphic() { |
if (radLoadingPanelContent != null) { |
radLoadingPanelContent.hide(currentUpdatedControl); |
} |
radLoadingPanelContent = null; |
currentUpdatedControl = null; |
} |
You will notice they are completely separate from AJAX events (which is what I want).
I just want a client-side way to indicate to the user that something is loading without using AJAX (because it's so dam slow).
The following works but looks very messy,
function showLoadingGraphic() { |
radLoadingPanelContent = document.getElementById("<%=radLoadingPanelContent.ClientID %>"); |
radLoadingPanelContent.style.display = "block"; |
} |
function hideLoadingGraphic() { |
radLoadingPanelContent = document.getElementById("<%=radLoadingPanelContent.ClientID %>"); |
radLoadingPanelContent.style.display = "none"; |
} |