gundambison

save data

Dec 7th, 2015
263
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function saveFormData()
  2. {
  3.     target=$("#frmMain");
  4.     showLog( target.serialize());
  5.     param=target.serialize();
  6.     res=sendAjax(urlFormSave,param);
  7.         res.success(function(result,status) {
  8.             showLog("success");
  9.             showLog(result);
  10.             $("#modalBody").empty().append(result.body);
  11.             $("#footerDetail").empty().append(result.footer);
  12.             $("#modalHead").empty().append(result.title);
  13.             $("#myModal").modal({show: false});
  14.             jQuery("#list,#list2").trigger('reloadGrid');  
  15.         });
  16.         res.error(function(xhr,status,msg){          
  17.             showLog("Error");
  18.             showLog(status);
  19.             showLog(msg);
  20.             showLog(xhr);          
  21.         });
  22.        
  23. }
Advertisement
Add Comment
Please, Sign In to add comment