connectiontype = "none"; latest_message_id = 0; messages = []; isxhr = false; authkey = "authpls"; // nocache // https://stackoverflow.com/a/15339941 function Xhr(){ /* returns cross-browser XMLHttpRequest, or null if unable */ try { return new XMLHttpRequest(); }catch(e){} try { return new ActiveXObject("Msxml3.XMLHTTP"); }catch(e){} try { return new ActiveXObject("Msxml2.XMLHTTP.6.0"); }catch(e){} try { return new ActiveXObject("Msxml2.XMLHTTP.3.0"); }catch(e){} try { return new ActiveXObject("Msxml2.XMLHTTP"); }catch(e){} try { return new ActiveXObject("Microsoft.XMLHTTP"); }catch(e){} return null; } function addMessage(text) { messages = messages.concat(text); // console.log(text); // console.log(messages); // var node = document.createElement("div"); // Create a
  • node // var textnode = document.createTextNode(text); // Create a text node // node.appendChild(textnode); // Append the text to
  • // document.getElementById("myList").appendChild(node); // Append
  • to