I have an application that will return JSON-P data, and I have been communicating with it using jQuery’s simple getJSON method:
$.getJSON("http://somedomain.com/&callback=?", this.callback);
I am bundling my code up into a library, and I love to not require jQuery. How easy would it be to re-write the getJSON function so that I can get cross-domain JSON-P data?
Can do something like