views:

30

answers:

2

I have an Ajaxable application which has some UpdateProgress for each postBack events. everything is good and working great.

I want to display another Indicator in my SiteMapPath bar which shows a post back is happening no matter what.

For example when user clicks on a button an UpdateProgress display an Indicator Image in central part of application. I want to display another image ( for every postbacks not only for one) in top of application toolbar.

Currently I use a simple Flag out ther and I want to use an indicator instead of that flag when ever a postback happens

Thank you in advance

A: 

You can simply have more than one asp:UpdateProgress control which point the to the same AssociatedUpdatePanelID

XGreen
@XGreen - The Flag update panel is on the master page and will upate with all update panels so that i can not associate an update Panel ID to it.
Nasser Hadjloo
Well then if you just want a global one. if you you put the updatetemplate on a master page without a associated updatepanel id it will just go off with any async postback that goes on. so it will be what you want. no?
XGreen
just saw we are from the same town :) samilik rafigh!
XGreen
+3  A: 

I believe you could do this in jquery alone by utilizing the ajaxSend and ajaxComplete events. Just bind a function to these events that will display your indicator and then hide the indicator. Take a look at the jquery docs for more info.

 $("#loading").bind("ajaxSend", function(){
   $(this).show();
 }).bind("ajaxComplete", function(){
   $(this).hide();
 });
Tauren