提交按钮ajax方式
function doSubmit2(){
$("#formobj").form("submit", {
url : "sjsCorporationCompanyInfoController.do?doAdd",
onSubmit : function() {
return $(this).form("validate");
},
success : function(data, opts) {
var datass = eval('(' + data + ')');
if(datass.success == true){
alert(datass.msg);
}else{
alert(datass.msg);
}
}
});
}
$.dialog.confirm("确认受理?", function () {
alert(id);
$.ajax({
url: 'sjsAgentServiceController.do?doShouLi',
type: 'post',
data: {id: id},
dataType: 'json',
success: function (response) {
if (response.msg != null && response.msg != "") {
alert(response.msg);
reloadTable();
//location.reload();
}
}
});
});
博主 Email:32595667@139.com QQ:32595667