All Questions

1749
votes
7answers
384695 views

What is JSONP all about?

I understand JSON, but not JSONP. Wikipedia's document on JSON is (was) the top search result for JSONP. It says this: JSONP or "JSON with padding" is a JSON extension wherein a prefix is specifie...
486
votes
16answers
660400 views

XmlHttpRequest error: Origin null is not allowed by Access-Control-Allow-Origin

I'm developing a page that pulls images from Flickr and Panoramio via jQuery's AJAX support. The Flickr side is working fine, but when I try to $.get(url, callback) from Panoramio, I see an error in ...
165
votes
4answers
306337 views

Basic example of using .ajax() with JSONP?

Please could someone help me work out how to get started with JSONP? Code: $('document').ready(function() { var pm_url = 'http://twitter.com/status'; pm_url += '/user_timeline/stephenfry.jso...
359
votes
4answers
111818 views

Can anyone explain what JSONP is, in layman terms?

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 ex...
62
votes
11answers
122116 views

AJAX cross domain call

I know about AJAX cross-domain policy. So I can't just call "http://www.google.com" over a ajax HTTP request and display the results somewhere on my site. I tried it with dataType "jsonp", that actua...
343
votes
7answers
167519 views

What are the differences between JSON and JSONP?

Format wise, file type wise and practical use wise?
89
votes
1answers
78316 views

jsonp with jquery

Can you give a very simple example of reading a jsonp request with jquery? I just can't get it to work.
95
votes
7answers
83956 views

Post data to JsonP

Is it possible to post data to JsonP? Or does all data have to be passed in the querystring as a GET request? I have alot of data that I need to send to the service, cross domain, and it is too large...
101
votes
5answers
395230 views

Access-Control-Allow-Origin error sending a jQuery Post to Google API's

I read a lot for the 'Access-Control-Allow-Origin' error, but I don't understand what I have to fix :( I'm playing with Google Moderator API, but when I try to add new serie I receive: XMLHttpReques...
106
votes
9answers
75316 views

How to make a JSONP request from Javascript without JQuery?

Can I make a cross-domain JSONP request in JavaScript without using jQuery or other external library? I would like to use JavaScript itself and then parse the data and make it an object so I could use...

Previous Next