1var req; 2 3function reloadNajnovsie() 4{ 5 var now = new Date(); 6 url = 'newsstream/liveNajnovsie.php?' + now.getTime(); 7 8 try { 9 req = new XMLHttpRequest(); 10 } catch (e) { 11 try { 12 req = new ActiveXObject("Msxml2.XMLHTTP"); 13 } catch (e) { 14 try { 15 req = new ActiveXObject("Microsoft.XMLHTTP"); 16 } catch (oc) { 17 alert("No AJAX Support"); 18 return; 19 } 20 } 21 } 22 23 req.onreadystatechange = processReqChange3; 24 req.open("GET", url, true); 25 req.send(null); 26} 27 28function processReqChange3() 29{ 30 // If req shows "complete" 31 if (req.readyState == 4) 32 { 33 dataDiv = document.getElementById('currentData3'); 34 35 // If "OK" 36 if (req.status == 200) 37 { 38 // Set current data text 39 dataDiv.innerHTML = req.responseText; 40 41 // Start new timer (1 min) 42 timeoutID = setTimeout('reloadNajnovsie()', 120000); 43 } 44 else 45 { 46 // Flag error 47 dataDiv.innerHTML = '<p></p>'; 48// dataDiv.innerHTML = '<p>There was a problem retrieving data: ' + req.statusText + '</p>'; 49 } 50 } 51}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.