//手动刷新 预警信息
function refalshByHandWarn(){
$.ajax({
type:"post",
url: "${ctx}/bns/investAjax/InvestClientProduct/refalshWarn.do",
dataType:"json",
async: true,
cache:false,
beforeSend:function(XMLHttpRequest){
//$("#loading").html("<img src='images/loading.gif' />");
showCreate();
},
success: function (data) {
if(data.success=='success'){
alert("数据刷新成功!");
}
},
complete:function(XMLHttpRequest,textStatus){
//$("#loading").empty();
closeDialog();
}
});
}
//显示弹出框
function showCreate(){
$('#loading').dialog({
title : '数据加载中...'
},{
closeOnEscape: false
},{
height : 150
},{
width : 300
},{
resizable : true
},{
modal : true
},{
show : 'clip'
},{
open: function (event, ui) {
$(".ui-dialog-titlebar-close", $(this).parent()).hide();
}
}
);
}
function closeDialog(){
$('.dialog').dialog('close');
}
<div class="dialog" id="loading" style="display:none;"><img src='images/loading.gif' /></div>