Skip to content

Instantly share code, notes, and snippets.

@nicholaides
Created February 28, 2011 15:42
Show Gist options
  • Save nicholaides/847481 to your computer and use it in GitHub Desktop.
Save nicholaides/847481 to your computer and use it in GitHub Desktop.
How do you do this in coffeescipt?
var req = $.get('foo.htm')
.success(function( response ){
// do something with the response
})
.error(function(){
// do something if the request failed
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment