Index: openacs-4/packages/xowiki/www/ajax/streaming-chat.js =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/xowiki/www/ajax/Attic/streaming-chat.js,v diff -u -r1.13 -r1.14 --- openacs-4/packages/xowiki/www/ajax/streaming-chat.js 20 Sep 2018 13:25:24 -0000 1.13 +++ openacs-4/packages/xowiki/www/ajax/streaming-chat.js 28 Sep 2018 11:44:23 -0000 1.14 @@ -3,78 +3,52 @@ // -gustaf neumann April 2006 var http = getHttpObject(); +// Pointer to the last character read from the partial ajax request. var http_last = 0; var http_send = getHttpObject(); function getData() { - //alert('access responseText'); // hmm, IE does not allow us to access responstext in state == 3 :( - var response = http.responseText.substring(http_last); - // we recognize a complete message by a trailing }\n - if (response.match(/\}[\n ]+$/)) { - var messages = document.getElementById('messages'); - //console.log('streaming chat has response'); - //console.log(response); - var data = JSON.parse(response); - for (var i=0;i