viralpatel.info
News: www.viralpatel.info >> blog <new> !
Blog


Twitt this! Email this!
JSONP [JSON with Padding]
----------------------------------
- A solution for Cross-Origin Resource Sharing
- Since <script> tag is an exception to Same-Origin Policy,
some pages use <script> tag to retrieve Javascript code that operates on dynamically-generated JSON-formatted data from other origins.
- This usage pattern is known as JSONP
- The response of JSONP request has Javascript code, which is evaluated by Javascript Interpreter rather than being parsed by JSON parser.
source : JSONP