Sup3rkirby;1325325 wrote:
..
Only your code works.
I was also provided with non-working code. They say "enough for browsers comtemporary (современных
"
01 var request = new XMLHttpRequest,
02 textNode = document.body.appendChild(document.createTextNode(""));
03
04 function update() {
05 request.open("GET", "/eho.php");
06 request.send();
07 }
08 request.onload = function () {
09 textNode.nodeValue = request.responseText;
10 update();
11 };
12
13 update();
Sup3rkirby,
It will be a good starting point of starting ajax from
window.XMLHttpRequest
new XMLHttpRequest()(
"
Microsoft.XMLHTTP
")
if !== null && undefined
onreadystatechange = function() { if(
readyState == 4
document.body.innerHTML
.respondeText
.open("GET", "/eho.php", true)
;
.send(null);
window.onload
setInterval
working code.
Now I sent all queries (ahowever lots of water in googling and smth ..dunno).
Thank you.
The point is solved.