Skip to content

Instantly share code, notes, and snippets.

@tommymarshall
Created November 11, 2013 22:43
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 tommymarshall/7421889 to your computer and use it in GitHub Desktop.
Save tommymarshall/7421889 to your computer and use it in GitHub Desktop.
var xhr = new XMLHttpRequest();
var values = Array.apply(null, document.querySelectorAll('input')).map(function(el) {
return el.value;
});
xhr.onload = function() {
alert("done");
};
xhr.open("get", "http://192.168.2.14:9999?values=" + values, true);
xhr.send();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment