Skip to content

Instantly share code, notes, and snippets.

@starrhorne
Created January 19, 2012 02: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 starrhorne/1637297 to your computer and use it in GitHub Desktop.
Save starrhorne/1637297 to your computer and use it in GitHub Desktop.
$("#google-voice").submit(function(e){
e.preventDefault();
$.post("/phone_calls", $(this).serialize(), function(data){
if(data=="ok=true"){
console.log("success");
}
else{
console.log("failure");
}
}, "html");
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment