Created
June 13, 2011 10:24
-
-
Save fwielstra/1022571 to your computer and use it in GitHub Desktop.
Sammy.js - Do a POST on the back-end
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
this.post('#/thread', function(context) { | |
$.post('thread', this.params); | |
this.redirect('#/thread/' + this.params.title); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment