Linked Questions

425 votes
4 answers
148k views

Can anyone explain what JSONP is, in layman terms? [duplicate]

I know JSONP is JSON with padding. I understand what JSON is, and how to use it with jQuery.getJSON(). However, I do not understand the concept of the callback when introducing JSONP. Can anyone ...
Someone's user avatar
  • 10.5k
36 votes
3 answers
177k views

How to make cross domain request [duplicate]

As you know, the security of the web browser disallows making of cross domain requests. I read a book which says that you should use XMLHTTPRequest only if you can put the files on the server (means ...
VB_'s user avatar
  • 45.5k
13 votes
1 answer
30k views

What Is Difference Between Json and Jsonp? [duplicate]

I am trying to access cross origin site via script. So I am getting an error, I have searched on internet that shows the solution is the JsonP. Anyone Please help me to know what is jsonp . and ...
Maulik Anand's user avatar
  • 1,449
10 votes
3 answers
5k views

Explanation and usage of JSONP [duplicate]

Possible Duplicate: Please explain JSONP What is JSONP, why is it needed, and what are some real world examples of it's usage.
Mark Kanof's user avatar
  • 1,436
6 votes
1 answer
4k views

What is the difference between JSON and JSONP? [duplicate]

Possible Duplicate: Please explain JSONP For example in the jQuery documentation I find both JSON and JSONP mentioned. What is the difference exactly? How can I see which is which? Which one ...
Svish's user avatar
  • 156k
2 votes
1 answer
4k views

Angular 2 JSONP, injected script did not invoke callback [duplicate]

I'm using Angular 2.RC4 and typescript I have class with data: import {Injectable, Injector, ReflectiveInjector} from '@angular/core'; import { Http, Response, Headers, RequestOptions, ...
jaroApp's user avatar
  • 889
3 votes
1 answer
2k views

Use jQuery.getJson to get Web API [duplicate]

I'm a beginner of ASP.NET Web API. Fail to use jQuery.getJson() to get ASP.NET Web API this failed: var url = "http://localhost:56110/api/Values"; $.getJSON(url, function (data) { $(&...
Lynne's user avatar
  • 497
3 votes
0 answers
1k views

MIME type ('text/html') is not executable, and strict MIME type checking is enabled - Angular 2 [duplicate]

I am trying to make a JSONP call in Angular 2, but every time I am getting this error: Refused to execute script from 'https://www.linkedin.com/oauth/v2/authorization?response_type=code&...
Dheeraj Agrawal's user avatar
1 vote
2 answers
862 views

Refused to execute script on jsonp request [duplicate]

I'm making a jsonp request and I get this error Refused to execute script from 'https://myurl/test.php?callback=%27callback%27' because its MIME type ('text/html') is not executable, and strict MIME ...
af_inb's user avatar
  • 103
-1 votes
1 answer
1k views

Enabling CORS in header (php) are not working on wordpress website [duplicate]

I'm trying to send a request and get a response from another website using jquery. Request is sent and i've got 200. But I cant get a response message from the server and what I see evretime is that ...
Pavel Kotau's user avatar
2 votes
2 answers
221 views

Javascript Which Uses XMLHTTP Request To PHP File On Same Host Violates Same-Origin Policy? [duplicate]

Possible Duplicate: Please explain JSONP On page 'www.foo.com', can a script loaded from 'www.example.com' send ajax requests to 'www.example.com'? I need to make a ...
user avatar
0 votes
1 answer
717 views

Uncaught SyntaxError: Unexpected token < [duplicate]

jsonp = (url, callback) => { var callbackName = 'jsonp_callback_' + Math.round(100000 * Math.random()); window[callbackName] = function(data) { delete window[...
kekeee's user avatar
  • 445
-1 votes
1 answer
326 views

Uncaught SyntaxError: Unexpeted token ':' [duplicate]

I have googled the life out of the search engine and am unable to find a fix for my error 'Uncaught SyntaxError: Unexpected token ':' all I am trying to do is open JSON file from js folder. here ...
Waheed Rafiq's user avatar
-2 votes
2 answers
87 views

JSON wrapped in NULL? [duplicate]

I'm using the API of an affiliate network (Sovrn), expecting to retrieve a product's specification using the URL. As per their documentation, I use: url = 'URL-goes-here' headers = { "accept&...
Zsolt Balla's user avatar
0 votes
0 answers
129 views

Yummly API Call Javascript JSONP [duplicate]

I need some basic help figuring out how to make a call to the Yummly API. I understand JSON is not JSONP and I'm trying to understand the difference but I'm really struggling because I'm not even sure ...
Fofaster's user avatar
  • 127

15 30 50 per page
1
2 3 4 5
21