Skip to content

Instantly share code, notes, and snippets.

@maikelwever
Created April 11, 2012 01:52
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 maikelwever/2356304 to your computer and use it in GitHub Desktop.
Save maikelwever/2356304 to your computer and use it in GitHub Desktop.
post_command.js
function post_command(command, arguments) {
datastring = "command=" + command + "&arguments=" + arguments;
$.post('/console/', datastring, function(data) {
if (data.length > 0) {
$("#hyperResponse").append(data.message);
}
}, 'json');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment