Advertisement
Guest User

Untitled

a guest
Nov 28th, 2014
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.22 KB | None | 0 0
  1. try {
  2. var baseUrl = './_layouts/edponline/typificationshandler.ashx';
  3. var operationName = 'CreateContact';
  4. var concat = '?method=' + operationName + '&targetId=' + targetId + '&contractNr=' + contractNr + '&levelIdOne=' + levelIdOne + '&levelIdThree=' + levelIdThree + '&sourceSystem=' + sourceSystem + '&sourceProcess=' + sourceProcess + '&cil=' + cil + '&message=' + message + '&email=' + email + '&phoneNumber=' + phoneNumber;
  5.  
  6. var fullUrl = baseUrl + concat; //'?method=' + operationName;
  7.  
  8. $.ajax({
  9. method: 'GET',
  10. cache: false,
  11. url: fullUrl,
  12. success: function (response) {
  13. if (response.status != 'ok') {
  14. edponline.typifications.ShowError();
  15. }
  16. else {
  17. console.log(response.result);
  18. edponline.typifications.ShowOK();
  19. }
  20. },
  21. error: function (error) {
  22. edponline.typifications.ShowError();
  23. }
  24. });
  25. }
  26. catch (err) {
  27. this.ShowError();
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement