Skip to content

Instantly share code, notes, and snippets.

@bensonk
Created June 29, 2010 02:12
Show Gist options
  • Save bensonk/456694 to your computer and use it in GitHub Desktop.
Save bensonk/456694 to your computer and use it in GitHub Desktop.
//submit a new message to the server
function send(msg) {
if (CONFIG.debug === false) {
// XXX should be POST
// XXX should add to messages immediately
jQuery.get("/send", {id: CONFIG.id, text: msg}, function (data) { }, "json");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment