Most voted "jsonp" questions
14 questions
Sort by count of
-
37
votes2
answers10986
viewsWhat is JSONP and how does it work?
What is JSONP, how to use and why to use JSONP instead of AJAX?
-
3
votes2
answers87
viewsHow to extract json from a jsonp in a Scala string
I’m using Scala and I have an http response like this: _SS_MainSolrCallbackH( { response: { numFound: 1, start: 0, maxScore: 4.9338827, docs: [ { tipo: "M", id: "mus1933196",a s: 4.9338827, u:…
-
2
votes2
answers103
viewsIs there any risk of not validating the name of a function used in JSONP?
Generally, when a service is available JSONP one of the things to be passed by parameter is the name of the callback that will be used in javascript. Example: $dados = [1, 2, 3]; $json =…
-
2
votes2
answers1107
viewsDifficulty with AJAX and JSONP
I’m having a problem returning ajax with jsonp, it returns json, but I can’t work with it. Code: $.ajax({ method: "GET", url: "http://minasul.tecnologia.ws/previsao/index.php?tipo=TODAS", async:…
-
2
votes0
answers22
viewsWhen should JSONP and AJAX be used?
I have this doubt because the two seem to me to be very similar. Someone can explain to me. When to use one or the other?
-
1
votes1
answer1935
viewsJSONP: status code 200 OK and still returns $.Ajax(...error:Function()...)
We’re having trouble making a request $.ajax, JSONP. The problem is that even with the positive return (Status Code:200) the function shown below always returns the error check result as positive.…
-
1
votes2
answers207
viewsProblems in the return of a JSONP
People I’m trying to get a response from an API of mine as JSONP but not the right one. Code ajax is this: $.ajax({ type: 'GET', url: url, async: false, contentType: "application/json", dataType:…
-
1
votes1
answer538
views"Uncaught Syntaxerror: Unexpected token :" error when trying to bring data in JSON format from another URL
I’m trying to pull data from a URL returning JSON to use on my page. Apparently I am able to bring the data, but for some reason I get the following error in the browser console: "Uncaught…
-
1
votes1
answer101
viewsAJAX receives JSONP as "Undefined"
first I wanted to say that I have been researching for this here in the forum and I found some similar questions, but no answer worked here. Next, I have a php file on the server that connects to…
-
0
votes1
answer210
viewsJSON return with error: Syntaxerror: Missing ; before statement
I have a problem with the JSON return, and I have already researched and I could not solve. I have the following requisition: var url =…
-
0
votes1
answer160
viewsTreat Exception on return from Ajax jsonp
Personally I’m making the service call this way: $.ajax({ url: minhaurl, type: "GET", dataType: "jsonp", contentType: "application/json; charset=utf-8", async: false, success: function (result,…
-
0
votes1
answer278
viewsAJAX request with different domain
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…
-
0
votes1
answer66
viewsDifficulty with Ajax Jsonp
I’m trying to consume an api through Ajax, but I get error while running it. var data2 = { resource_id: '1d7e45e5-b159-46a2-bdce-90393c7a8a2b', // the resource id limit: 5, // get 5 results q:…
-
-1
votes2
answers1501
viewsHow to get JSON from an external url
I’m trying to catch a JSON from an external page, I’m using the dataType=jsonp, but only that the url, returns me a JSON and the following error: Uncaught Syntaxerror: Unexpected token : The JSON…