But, we are not talking about JSON, but JSONP. JSONP (JSON with Padding ) allows transmission of (JSON) data on domain boundaries. Usually Ajax data queries are sent to the server via the XMLHttpRequest object of a web browser. The problem of same-origin policy can be circumvented by JSONP.
The Basic Idea about JSONP Script Tags
The src attribute of a
script element can possibly specify arbitrary URLs. For
querystring communicated to the URL; for example:
This was the example of Padding. This JSON data could be dynamically generated, according to the query parameters passed in the URL. For each JSONP call their own is