You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
yacy_search_server/htroot/js/Bookmarks.js

23 lines
705 B

AJAX_OFF="/env/grafics/empty.gif";
AJAX_ON="/env/grafics/ajax.gif";
function handleResponse(){
if(http.readyState == 4){
var response = http.responseXML;
title=response.getElementsByTagName("title")[0].firstChild.nodeValue;
document.getElementsByName("title")[0].value=title;
// remove the ajax image
document.getElementsByName("ajax")[0].setAttribute("src", AJAX_OFF);
}
}
function loadTitle(){
// displaying ajax image
document.getElementsByName("ajax")[0].setAttribute("src",AJAX_ON);
url=document.getElementsByName("url")[0].value;
if(document.getElementsByName("title")[0].value==""){
sndReq('/xml/util/getpageinfo_p.xml?actions=title&url='+url);
}
}