Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- try {
- var baseUrl = './_layouts/edponline/typificationshandler.ashx';
- var operationName = 'CreateContact';
- var concat = '?method=' + operationName + '&targetId=' + targetId + '&contractNr=' + contractNr + '&levelIdOne=' + levelIdOne + '&levelIdThree=' + levelIdThree + '&sourceSystem=' + sourceSystem + '&sourceProcess=' + sourceProcess + '&cil=' + cil + '&message=' + message + '&email=' + email + '&phoneNumber=' + phoneNumber;
- var fullUrl = baseUrl + concat; //'?method=' + operationName;
- $.ajax({
- method: 'GET',
- cache: false,
- url: fullUrl,
- success: function (response) {
- if (response.status != 'ok') {
- edponline.typifications.ShowError();
- }
- else {
- console.log(response.result);
- edponline.typifications.ShowOK();
- }
- },
- error: function (error) {
- edponline.typifications.ShowError();
- }
- });
- }
- catch (err) {
- this.ShowError();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement