missing File for IndexCreate

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@1694 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
allo 19 years ago
parent bfd37e34aa
commit 91b78d9f04

@ -0,0 +1,44 @@
timeout="";
function handleResponse(){
if(http.readyState == 4){
var response = http.responseXML;
title="";
robotsOK="";
if(response.getElementsByTagName("title")[0].firstChild!=null){
title=response.getElementsByTagName("title")[0].firstChild.nodeValue;
}
if(response.getElementsByTagName("robots")[0].firstChild!=null){
robotsOK=response.getElementsByTagName("robots")[0].firstChild.nodeValue;
}
document.getElementById("title").innerHTML=title;
robotsOKspan=document.getElementById("robotsOK");
if(robotsOKspan.firstChild){
robotsOKspan.removeChild(robotsOKspan.firstChild);
}
if(robotsOK==1){
img=document.createElement("img");
img.setAttribute("src", "/env/grafics/ok.png");
img.setAttribute("width", "24px");
img.setAttribute("height", "24px");
robotsOKspan.appendChild(img);
}else if(robotsOK==0){
img=document.createElement("img");
img.setAttribute("src", "/env/grafics/failed.png");
img.setAttribute("width", "24px");
img.setAttribute("height", "24px");
robotsOKspan.appendChild(img);
robotsOKspan.appendChild(img);
}else{
robotsOKspan.appendChild(document.createTextNode(""));
document.getElementById("robotsOK").innerHTML="";
}
}
}
function changed(){
window.clearTimeout(timeout);
timeout=window.setTimeout("loadInfos()", 1500);
}
function loadInfos(){
url=document.getElementsByName("crawlingURL")[0].value;
sndReq('/xml/util/getpageinfo_p.xml?actions=title,robots&url='+url);
}
Loading…
Cancel
Save