Skip to content

Instantly share code, notes, and snippets.

@fwielstra
Created June 13, 2011 10:24
Show Gist options
  • Save fwielstra/1022571 to your computer and use it in GitHub Desktop.
Save fwielstra/1022571 to your computer and use it in GitHub Desktop.
Sammy.js - Do a POST on the back-end
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