I've posted this before, but I do something like:
var loadingCount = 0;
AjaxPro.onLoading = function (b){
if(b) loadingCount++;
else loadingCount--;
$('idLoading').style.visibility = (loadingCount ==
0)?"hidden":"visible";
}
I have the loadingCount variable because I want it to show the loading
icon as long as a request is running.
If you hide it on the callback and there are two requests executing, it
will be hidden when the first callback is reached. Hopefully that
makes sence.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ajax.NET Professional" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/ajaxpro
The latest downloads of Ajax.NET Professional can be found at
http://www.ajaxpro.info/
Don't forget to read my blog at http://weblogs.asp.net/mschwarz/
-~----------~----~----~----~------~----~------~--~---