Skip to content

Instantly share code, notes, and snippets.

@albohlabs
Created March 6, 2012 22:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save albohlabs/1989392 to your computer and use it in GitHub Desktop.
Save albohlabs/1989392 to your computer and use it in GitHub Desktop.
JS: jsonp
var scr = document.createElement('script');
// When the script runs, it'll pass the data into the formatCurrency function. Excellent.
scr.src = 'http://openexchangerates.org/latest.json?callback=formatCurrency';
document.body.appendChild(scr);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment