DELETE_STRING="delete" var statusRPC; var indexingQueueRPC; 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); function handleStatus(){ if(statusRPC.readyState != 4){ return; } 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];*/ statusTag=getFirstChild(getFirstChild(statusResponse, ""), "status") indexingqueue=getFirstChild(statusTag, "indexingqueue"); indexingqueue_size=getValue(getFirstChild(indexingqueue, "size")); indexingqueue_max=getValue(getFirstChild(indexingqueue, "max")); ppm=getValue(getFirstChild(statusTag, "ppm")) document.getElementById("indexingqueuesize").firstChild.nodeValue=indexingqueue_size; document.getElementById("indexingqueuemax").firstChild.nodeValue=indexingqueue_max; document.getElementById("ppm").firstChild.nodeValue=ppm; } function handleIndexingQueue(){ if(indexingQueueRPC.readyState != 4){ return; } var indexingQueueResponse = indexingQueueRPC.responseXML; indexingTable=document.getElementById("indexingTable"); if(indexingQueueResponse != null){ entries=indexingQueueResponse.getElementsByTagName("entry"); } //skip the Tableheade row=getNextSibling(getFirstChild(getFirstChild(indexingTable, "tbody"), "tr"), "tr") //row=indexingTable.firstChild.nextSibling.firstChild.nextSibling.nextSibling; while(row != null){ //delete old entries getFirstChild(indexingTable, "").removeChild(row); row=getNextSibling(getFirstChild(getFirstChild(indexingTable, "tbody"), "tr"), "tr") } dark=false; for(i=0;i