X-Git-Url: http://git.scottworley.com/reliable-chat/blobdiff_plain/cf44a97649f42952e85dca82a91f18fc4e14c1e9..2ee4581bb573fb3a3df74f9359a59d51ac41c483:/webclient/rc.html?ds=sidebyside diff --git a/webclient/rc.html b/webclient/rc.html index 7f3e8d1..da5874a 100644 --- a/webclient/rc.html +++ b/webclient/rc.html @@ -258,6 +258,8 @@ type = "status"; } else if (/^\* /.test(message.Text)) { type = "me"; + } else if (/^-!- /.test(message.Text)) { + type = "local"; } else { type = "text"; } @@ -434,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(); } }