Skip to content

Instantly share code, notes, and snippets.

@sergi
Created July 30, 2014 21:55
Show Gist options
  • Save sergi/89e4c907dce670ecbec4 to your computer and use it in GitHub Desktop.
Save sergi/89e4c907dce670ecbec4 to your computer and use it in GitHub Desktop.
Simulate JSONP
script.src = "data:text/javascript;base64," + btoa(
"callback(" + JSON.stringify(dummyData) + ")"
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment