提交按钮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();
}
}
});

});


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM