DELETE_STRING="delete" var statusRPC; function requestStatus(){ statusRPC=createRequestObject() statusRPC.open('get', '/xml/status_p.xml'); statusRPC.onreadystatechange = handleStatus; statusRPC.send(null) } function requestIndexingQueue(){ indexingQueueRPC=createRequestObject() indexingQueueRPC.open('get', '/xml/queues/indexing_p.xml'); indexingQueueRPC.onreadystatechange = handleIndexingQueue; indexingQueueRPC.send(null); } window.setInterval("requestStatus()", 5000); window.setInterval("requestIndexingQueue()", 5000); //window.setInterval("sndReq('/xml/queues/indexing_p.xml')", 5000); function handleStatus(){ var statusResponse = statusRPC.responseXML; indexingqueue=statusResponse.getElementsByTagName("indexingqueue")[0]; indexingqueue_size=indexingqueue.firstChild.nextSibling; indexingqueue_max=indexingqueue_size.nextSibling.nextSibling; ppm=statusResponse.getElementsByTagName("ppm")[0]; document.getElementById("indexingqueuesize").firstChild.nodeValue=indexingqueue_size.firstChild.nodeValue; document.getElementById("indexingqueuemax").firstChild.nodeValue=indexingqueue_max.firstChild.nodeValue; document.getElementById("ppm").firstChild.nodeValue=ppm.firstChild.nodeValue; } function handleIndexingQueue(){ var indexingQueueResponse = indexingQueueRPC.responseXML; indexingTable=document.getElementById("indexingTable"); if(indexingQueueResponse != null){ entries=indexingQueueResponse.getElementsByTagName("entry"); } //skip the Tableheade row=indexingTable.firstChild.nextSibling.firstChild.nextSibling.nextSibling; while(row != null){ //delete old entries indexingTable.firstChild.nextSibling.removeChild(row); row=indexingTable.firstChild.nextSibling.firstChild.nextSibling.nextSibling; } dark=false; for(i=0;i