yacy_search_server/htroot/js/query.js
orbiter 9935e83c86 added new news window into the status page. At this moment it is just a test.
The news inside the window are about peer arrivals and departures, remote search accesses and crawls

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@4739 6c8d7289-2bf4-0310-a012-ef5d649a1542
2008-04-26 01:00:10 +00:00

18 lines
530 B
JavaScript
Executable File

var query = new Object();
function getQueryProps() {
var text = "";
for (property in query) {
text += property + " = " + query[property] + ";\n";
}
return text;
}
function getURLparameters() {
if (self.location.search.indexOf("=") == -1) {return;}
var parameterArray = unescape(self.location.search).substring(1).split("&");
for (var i=0;i<parameterArray.length;i++) {
parameterArray[i] = parameterArray[i].split("=");
eval("query." + parameterArray[i][0] + " = \"" + parameterArray[i][1] + "\"");
}
}