Skip to content

Instantly share code, notes, and snippets.

@swannodette
Created November 8, 2008 22:45
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 swannodette/23151 to your computer and use it in GitHub Desktop.
Save swannodette/23151 to your computer and use it in GitHub Desktop.
// this is a space instance or shift instance
this.xmlhttpRequest({
'method': 'GET',
'url':'http://someurl.com',
'onload': function(response)
{
// callback code, response arg is the response text
},
'onerror': function(response)
{
// error handling code, response arg is the response text
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment