naveen kumar

naveen kumar

  • NA
  • 47
  • 6k

Ajax post the data success message not getting

Apr 13 2018 8:40 AM
Hi Am Posting data to server data send successfully but am not getting success message
 
 
this is my code 
function sendingdate() {
/
var ajaxservice = WebUrl + "getAttachment?userid=" + userid + "&company_id=" + companyid + "&outlook_key=" + OutlookKey + "&callback=OutlookWeb";
$.ajax({
url: ajaxservice + "getAttachment?outlook_key=" + OutlookKey + "&callback=OutlookWeb",
data: { "Attachment_Name": AttachmentName, "Attachment_content_data": Attachmentcontentdata },
type: 'POST',
contentType: "application/json",
dataType: 'json',
success: function (data) {
console.log(JSON.stringify(data));
},
error: function (errorThrown) {
console.log('Could not get posts, server response:', errorThrown);
}
});
 
any give me best suggestion 
 

Answers (3)