Guest User

Untitled

a guest
Dec 3rd, 2018
199
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. $.ajax({
  2. url :"<?php echo base_url();?>booking/dispatch_challan/DispatchChallanController/createDispatchChallan",
  3. type:"POST",
  4. dataType: "json",
  5. data:$("#dispatch_challan_form").serialize(),
  6. data:$("#dispatch_challan_form").serialize()+'&disp_ch_ids='+allVals,
  7. success: function(data)
  8. {
  9. if(data.create_dispatch_challan.form_status=='false')
  10. {
  11. alertify.error('you may occured some server side errors');
  12. }else if(data.create_dispatch_challan.form_status=='true')
  13. {
  14. alertify.success(data.create_dispatch_challan.form_message);
  15. if (confirm())
  16. {
  17. alert("print");
  18. }else{
  19. alert("Do not print");
  20. }
  21. }
  22. }
  23. });
Add Comment
Please, Sign In to add comment