2011-12-25 13 views

答えて

0

あなたは停止し、エラーイベントがあなたのPNGを表示するには、Ajaxの先頭に関数をバインドすることができ

// error with request 
$(document).ajaxError(function (event, xhr, settings, error){ 
// something went wrong 
}); 

// show loading indicator 
// when ajax requests start 
$(document).ajaxStart(function(){ 
showLoadingGraphic(); 
}); 

// remove loading indicator 
// when ajax requests complete 
$(document).ajaxStop(function(){ 
hideLoadingGraphic(); 
}); 
関連する問題