Guest User

Untitled

a guest
Dec 13th, 2017
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. var pathname = window.location.host;
  2. var origin = window.location.origin;
  3. var siteURL = "http://" + pathname + "/";
  4.  
  5. $.ajax({
  6. type: "POST",
  7. url: siteURL + 'serviceentry/SetNewTech',
  8. data: {
  9. Tech: value_check,
  10. OrderNo: so_no
  11. },
  12. success: function(response) {
  13. if (response != null && response.success) {
  14. alertify
  15. .success(response.responseText);
  16.  
  17. $("#technician").val(value_check);
  18.  
  19. } else {
  20. alertify
  21. .error(response.responseText);
  22. }
  23. },
  24. error: function(response) {
  25. alertify
  26. .error(response.responseText);
  27. }
  28. });
Add Comment
Please, Sign In to add comment