My Request
url="http://algumip:algumaporta/dowPDFNF?cChave="+chave
$.ajax({
url: url,
dataType: 'jsonp',
success: function (data) {
console.log(JSON.stringify(data));
},
type: 'POST'
});
error that returns:
Uncaught SyntaxError: Unexpected token :
However,whenIpasstheurl(generatedbytheurlvariable)directlyintothenavager,Igettherightreturn.Seepicturethereturn:
WhatIneedistogetthisreturntogetthepdfdownload
{"pdf":"http:\\algumip\download\6a423e04e2c2dfd4a59f0001ec8bbf44b9a6a6d-nfe.pdf"}