//Using jquery easyui loading css effect
function ajaxLoading() {
$("
").css({display:"block",width:"100%",height:$(window). height()}).appendTo("body");
$("
").html("Processing, please wait . . ").appendTo("body").css({display:"block",left:($(document.body).outerWidth(true) - 190) / 2,top:($(window). height() - 45) / 2});
}
function ajaxLoadEnd(){
$(".datagrid-mask").remove();
$(".datagrid-mask -msg").remove();
}
$.ajax({
type: 'POST',
url: 'sendLettersAgain.action',
data: { id:obj.id},
beforeSend:ajaxLoading,\Open the progress bar before sending the request
success: function(robj){
ajaxLoadEnd();\Task execution is successful, close the progress bar
}
});