From fd7af851bf2520a00d94e5a502d503dc8f5544ec Mon Sep 17 00:00:00 2001 From: allo Date: Mon, 6 Feb 2006 15:12:03 +0000 Subject: [PATCH] WatchCrawler is working NOW! Thx to theli. git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@1557 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- htroot/WatchCrawler.html | 4 +- htroot/js/WatchCrawler.js | 84 +++++++++++++++++++++++++++++++++------ 2 files changed, 75 insertions(+), 13 deletions(-) diff --git a/htroot/WatchCrawler.html b/htroot/WatchCrawler.html index caa112ab5..b45494458 100644 --- a/htroot/WatchCrawler.html +++ b/htroot/WatchCrawler.html @@ -1,7 +1,7 @@ -YaCy '#[clientname]#': Watch Crawler +YaCy Watch Crawler #%env/templates/metas.template%# @@ -13,6 +13,7 @@

Indexing Queue:
+ @@ -22,6 +23,7 @@ Indexing Queue:
+
Initiator Depth Size Delete
#%env/templates/footer.template%# diff --git a/htroot/js/WatchCrawler.js b/htroot/js/WatchCrawler.js index 761503390..88b966f6e 100644 --- a/htroot/js/WatchCrawler.js +++ b/htroot/js/WatchCrawler.js @@ -2,40 +2,100 @@ function handleResponse(){ if(http.readyState == 4){ var response = http.responseXML; indexingTable=document.getElementById("indexingTable"); - entries=response.getElementsByTagName("entry"); + if(response != null){ + entries=response.getElementsByTagName("entry"); + } //skip the Tableheade - row=indexingTable.firstChild.nextSibling.nextSibling; + row=indexingTable.firstChild.nextSibling.firstChild.nextSibling.nextSibling; while(row != null){ //delete old entries - indexingTable.removeChild(row); - row=indexingTable.firstChild.nextSibling.nextSibling; + indexingTable.firstChild.nextSibling.removeChild(row); + row=indexingTable.firstChild.nextSibling.firstChild.nextSibling.nextSibling; } dark=false; for(i=0;iDelete' + + //create delete link + col=document.createElement("td"); + link=document.createElement("a"); + link.setAttribute("href", "IndexCreateIndexingQueue_p.html?deleteEntry="+hash); + text=document.createTextNode("Delete"); + link.appendChild(text); + col.appendChild(link) + row.appendChild(col); + return row; +}