Skip to content

Instantly share code, notes, and snippets.

@ti-ka
Created July 13, 2015 00:27
Show Gist options
  • Save ti-ka/f81fbababffb80b127bc to your computer and use it in GitHub Desktop.
Save ti-ka/f81fbababffb80b127bc to your computer and use it in GitHub Desktop.
var data = localStorage.getItem("savedData")
var request = $.ajax({
method : 'post',
data : {"name" : data}
url : "http://example.com/receive-data.php"
});
request.success(function(){
console.log("Data sent to server");
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment