From: Scott Worley Date: Sun, 19 Aug 2012 15:49:09 +0000 (-0700) Subject: Use XMLHttpRequest POST to send messages X-Git-Url: http://git.scottworley.com/reliable-chat/commitdiff_plain/9878d03bc1ec4a37d501ee65b520630235cc86cf?ds=sidebyside Use XMLHttpRequest POST to send messages --- diff --git a/webclient/rc.html b/webclient/rc.html index a8bc337..da5874a 100644 --- a/webclient/rc.html +++ b/webclient/rc.html @@ -436,10 +436,9 @@ "?id=" + encodeURIComponent(message.ID) + "&text=" + encodeURIComponent(message.Text); for (var i in servers) { - var uri = rcserverbase(servers[i]) + path; - var img = document.createElement("img"); - img.setAttribute("src", uri); - d.appendChild(img); + var xhr = new XMLHttpRequest(); + xhr.open("POST", rcserverbase(servers[i]) + path); + xhr.send(); } }