Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function saveFormData()
- {
- target=$("#frmMain");
- showLog( target.serialize());
- param=target.serialize();
- res=sendAjax(urlFormSave,param);
- res.success(function(result,status) {
- showLog("success");
- showLog(result);
- $("#modalBody").empty().append(result.body);
- $("#footerDetail").empty().append(result.footer);
- $("#modalHead").empty().append(result.title);
- $("#myModal").modal({show: false});
- jQuery("#list,#list2").trigger('reloadGrid');
- });
- res.error(function(xhr,status,msg){
- showLog("Error");
- showLog(status);
- showLog(msg);
- showLog(xhr);
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment