Skip to content

Instantly share code, notes, and snippets.

@rauhryan
Forked from anonymous/gist:3380313
Created August 17, 2012 16:19
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 rauhryan/3380321 to your computer and use it in GitHub Desktop.
Save rauhryan/3380321 to your computer and use it in GitHub Desktop.
function callAjax(){
$.ajax({
url: "url",
data: {
value: "derp"
},
dataType: "json",
success: function(data){
//do stuffs
},
error: function(){
alert("error!");
}
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment