HOW TO handle a API's JSONP response that uses a static or fixed or named callback function
Script and JSONP requests are not subject to the same origin policy restrictions. Most APIs that return JSONP data will generate a dynamic callback function name and they typically have a parameter like jsoncallback=?.
However some API's like flickr, Facebook require that you use the callback function name that they specify.
Here are a couple of ways that you can tackle that scenario -
|click to enlarge code snippet|