var promise = $http({
method: 'POST',
url: getModifiedURL(userInfo.URL + '/FilterDataService.svc/SubmitRequest'),
data: { inputFilters: JSON.stringify(param) },
headers: { 'Content-Type': 'application/json; charset=UTF-8' }
}).success(function (data, status, headers, config) {
ReportRequestDataSet = data.SubmitRequestResult;
ReportRequestID = JSON.parse(ReportRequestDataSet).Data[0].Result;
$("#ajaxLoader").hide();
}).error(function (data, status, headers, config) {
setAckMessageWithTime("Operation failed to Submit a format!", 3000);
$("#ajaxLoader").hide();
});
return promise;
Here is the code which has the problem.
On AJAX call it directly goes to error block above.
Any solution would be appreciable.
Thanks,
E. Ramesh Babu