Created
July 4, 2012 21:11
-
-
Save jaredfaris/3049538 to your computer and use it in GitHub Desktop.
Functionalizing JavaScript 2
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
$('#someElement').on('click', | |
function() { | |
var objectId = getObjectId(); | |
$.ajax({ | |
url: "/some/path", | |
type: "POST", | |
data: { | |
objectId: objectId | |
}, | |
success: handleSuccess | |
}) | |
} | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment