JSONP Requests
JSONP stands for “JSON with Padding” and it is a workaround for loading data from different domains. It loads the script into the head of the DOM and thus you can access the information as if it were loaded on your own domain, thus by-passing the cross domain issue.
Load a JSON data Object from another domain (with callback function)
What is ?jsoncallback=? used for?
Firstly you need access to the JSON file to wrap it in a “callback function”. In this case I have called it “jsonCallback”. This will be the function called by the AJAX request.
Read full article from jQuery's JSONP Explained with Examples | jQuery4u
No comments:
Post a Comment