Advertisement
Guest User

loader

a guest
Oct 22nd, 2019
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.06 KB | None | 0 0
  1. function CallServer(){
  2. incloading.classList.toggle('displayed');
  3. var strJsonTicket = {
  4. URequester: {
  5. struserid: userid, strGroupid: strgroupid,
  6. stremail: stremail, strFullName: fullname,
  7. strContactNumber: contactnum
  8. },
  9. };
  10.  
  11.  
  12. $.ajax({
  13. url: baseip + "/api/ServiceRequest/Create",
  14. type: "POST",
  15. async: false,
  16. data: JSON.stringify(strJsonTicket),
  17. success: function () {
  18. window.location.href = "Default.aspx?crs=cs1";
  19. document.getElementById('btnCreate').disabled = false;
  20.  
  21. },
  22. error: function (result) {
  23. document.getElementById('btnCreate').disabled = false;
  24. return false;
  25. }
  26. });
  27.  
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement