Skip to content

Instantly share code, notes, and snippets.

@calvinchengx
Created April 23, 2012 06:28
Show Gist options
  • Save calvinchengx/2469127 to your computer and use it in GitHub Desktop.
Save calvinchengx/2469127 to your computer and use it in GitHub Desktop.
function mycoolajaxCall(csrfmiddlewaretoken, whateverla) {
post_data = {csrfmiddlewaretoken: csrfmiddlewaretoken,
whateverla: whateverla}
$.ajax({
url: the_url,
data: post_data,
type: 'POST',
dataType: 'json',
success: function (data) {
alert("Success! You are so cool, my friend.")
}
})
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment