代码的一部分,点击确认操作数据库删除信息,然后弹出提示删除成功,现在想要点击确认当前的确认框不关闭,直接等数据库操作完成变成成功提示框。。可行不???? $.msgbox({
height: 150,
width: 250,
content: { type: 'confirm', content: comfirmMsg },
onClose: function(v) {
if (v) {
var ret = $.ajax({ url: "AjaxHandle.aspx", data: { type: "ajax_DeleteDepartmentInfo", windowid: windowid, company_id: company_id, department_id: department_id }, async: false }).responseText;
if (ret != '') {
strErrMsg = ret;
$.msgbox({ content: { type: 'alert', content: strErrMsg} }); ;
} else {
var strseccessmsg = GetMsg('COMM006');
$.msgbox({ content: { type: 'alert', content: strseccessmsg }, onClose: function() { fRefreshData(); } });
}
}
}
});
height: 150,
width: 250,
content: { type: 'confirm', content: comfirmMsg },
onClose: function(v) {
if (v) {
var ret = $.ajax({ url: "AjaxHandle.aspx", data: { type: "ajax_DeleteDepartmentInfo", windowid: windowid, company_id: company_id, department_id: department_id }, async: false }).responseText;
if (ret != '') {
strErrMsg = ret;
$.msgbox({ content: { type: 'alert', content: strErrMsg} }); ;
} else {
var strseccessmsg = GetMsg('COMM006');
$.msgbox({ content: { type: 'alert', content: strseccessmsg }, onClose: function() { fRefreshData(); } });
}
}
}
});
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货