Created
February 28, 2011 15:42
-
-
Save nicholaides/847481 to your computer and use it in GitHub Desktop.
How do you do this in coffeescipt?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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