Skip to content

Instantly share code, notes, and snippets.

@calvinchengx
Created April 23, 2012 06:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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