Fork me on GitHub


Basic JSONP helper (pure JS)


Roberto Decurnex (


You can download this project in either zip or tar formats.

You can also clone the project with Git by running:

$ git clone git://

Quick Example

var url = "http://domain/something.jsonp";  
var data = {};  
var callback = function(data){ alert(data.attribute_name)};

J50Npi.getJSON(url, data, callback);

Note that the given url does not need a callback parameter. It will be set automatically to J50Npi.success that will be the one executing the given callback function.


Please report any issue or advise here at Github.