Skip to content

Instantly share code, notes, and snippets.

View sconnelley's full-sized avatar

Sean Connelley sconnelley

View GitHub Profile
@sconnelley
sconnelley / jsonp.js
Created February 9, 2016 17:37 — forked from gf3/jsonp.js
Simple JSONP in vanilla JS
/**
* loadJSONP( url, hollaback [, context] ) -> Null
* - url (String): URL to data resource.
* - hollaback (Function): Function to call when data is successfully loaded,
* it receives one argument: the data.
* - context (Object): Context to invoke the hollaback function in.
*
* Load external data through a JSONP interface.
*
* ### Examples