Questions tagged as 'jsonp'

1
answer

Difficulty with Ajax Jsonp

I'm trying to consume an api through Ajax, but I get an error executing it. var data2 = { resource_id: '1d7e45e5-b159-46a2-bdce-90393c7a8a2b', // the resource id limit: 5, // get 5 results q: 'jones', // query for 'jones' };...
asked by 13.06.2018 / 16:31
1
answer

Handle exception on Ajax jsonp return

Personally I'm calling the service this way: $.ajax({ url: minhaurl, type: "GET", dataType: "jsonp", contentType: "application/json; charset=utf-8", async: false, success: function (result, status, request) { co...
asked by 24.10.2016 / 15:19
2
answers

How to get JSON from an external url

I'm trying to get a JSON from an external page, I'm using dataType=jsonp , but only that url, returns me a JSON and the following error: / p>    Uncaught SyntaxError: Unexpected token: The JSON returns me the following token: {...
asked by 14.09.2015 / 19:57