summaryrefslogtreecommitdiff
path: root/htroot/Steering.html
diff options
context:
space:
mode:
authorlow012 <low012@6c8d7289-2bf4-0310-a012-ef5d649a1542>2010-03-23 21:05:26 +0000
committerlow012 <low012@6c8d7289-2bf4-0310-a012-ef5d649a1542>2010-03-23 21:05:26 +0000
commit4c6dc396d8b54600d397e94e31d72cac4b1afd52 (patch)
tree3406f373c2c5ac56e55f3ab656dcaca46ac4b2a6 /htroot/Steering.html
parent6c093d6aed949b0d58ff8a0bc035ccf044f51cb6 (diff)
*) more beautyful (IMO) code, no functional changes
git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@6764 6c8d7289-2bf4-0310-a012-ef5d649a1542
Diffstat (limited to 'htroot/Steering.html')
-rw-r--r--htroot/Steering.html34
1 files changed, 20 insertions, 14 deletions
diff --git a/htroot/Steering.html b/htroot/Steering.html
index 79b2350dc..de098ff26 100644
--- a/htroot/Steering.html
+++ b/htroot/Steering.html
@@ -1,31 +1,37 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
+ <script type="text/javascript" src="js/ajax.js"></script>
<title>YaCy '#[clientname]#': Steering</title>
#%env/templates/metas.template%#
</head>
<body style="margin:40px;text-align:center;">
- <script type="text/javascript" language="JavaScript">
+ <script type="text/javascript">
<!--
-
+ var ro;
function online() {
- if(!document.images) return
- var url = "env/grafics/kaskelix_exit.png" + '?' + Math.random();
- var img = new Image();
- img.onload = function () {
- window.location.replace('Status.html');
- };
- img.onerror = function () {
- setTimeout('online()', 10000);
+ ro = createRequestObject();
+ var url = "yacy/hello.html" + '?' + Math.random();
+ ro.open("Get",url,true);
+ ro.onreadystatechange = callback;
+ ro.send(null);
+ }
+
+ function callback() {
+ if (ro.readyState == 4) {
+ if(ro.status == 200) {
+ window.location.replace('Status.html');
+ }
+ } else {
+ setTimeout('online()', 10000);
}
- img.src = url;
}
//-->
</script>
- <p><img src="env/grafics/kaskelix_exit.png"></p>
+ <p><img src="env/grafics/kaskelix_exit.png" alt="Kaskelix"/></p>
#(info)#
<b>No action submitted</b><br />
<p>Go back to the <a href="Settings_p.html">Settings</a> page</p>
@@ -44,12 +50,12 @@
Application will terminate after working off all scheduled tasks.<br />
Then YaCy will restart.<br />
If you can't reach YaCy's interface after 5 minutes restart failed.
- <script type="text/javascript" language="JavaScript">setTimeout('online()', 60000);</script>
+ <script type="text/javascript">setTimeout('online()', 60000);</script>
::
<h2>Just a moment, please!</h2>
<b>Installing release #[release]#</b><br />
<p>YaCy will be restarted after installation</p>
- <script type="text/javascript" language="JavaScript">setTimeout('online()', 60000);</script>
+ <script type="text/javascript">setTimeout('online()', 60000);</script>
#(/info)#
</p>
</body>