I added this simple  java script to showLoading ,

function wicketGlobalPreCallHandler() {
  //alert('Before ajax call');
  jQuery('#page').showLoading(
        {
                'addClass': 'loading-indicator-bars'
                                                                
        }
  );
  
}
function wicketGlobalPostCallHandler() {
  //alert('ajax response ready');
  jQuery('#page').hideLoading();
}
function wicketGlobalFailureHandler() {
  //alert('connection error');
  jQuery('#page').hideLoading();
}



I am using jquery   to showLoading , this works well , I need this
showLoading to appear only for user initiated ajax requests that is when
user clicks on a link  or submits a form etc and not in cases where
Ajaxlazyloading component  is loading or ajaxtimercomponent  is updating  or
a wicket-push request is updating some component etc ,Please suggest me is
there any  way I can identify that the ajaxrequest is for lazyloading or
timer or wicket-push and not user initiated in the method  
function wicketGlobalPreCallHandler()  so that I will not call  
jQuery('#page').showLoading 
-- 
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/donot-show-busy-indicator-for-lAjaxaLazyLoading-tp3088009p3088009.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to