Skip to content

Instantly share code, notes, and snippets.

@rightjs
Created June 6, 2010 15:44
Show Gist options
  • Save rightjs/427662 to your computer and use it in GitHub Desktop.
Save rightjs/427662 to your computer and use it in GitHub Desktop.
// JSONP support in action
new Xhr('/bla/bla/bla', {
jsonp: true, // <- will use the 'callback' name by default
}).send('some=data');
// or like that
Xhr.load('/bla/bla/bla', {
jsonp: 'mycustomname'
});
// or even like that
$('my-form').send({jsonp: true});
// the actual commit is over here
// http://github.com/rightjs/rightjs-core/commit/00e583c71d0d8afcb5ed596eb46b25e680afbe6e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment