--- loncom/html/res/adm/pages/menu.html 2003/05/23 16:37:30 1.98
+++ loncom/html/res/adm/pages/menu.html 2003/05/24 12:43:54 1.99
@@ -4,7 +4,7 @@ The LearningOnline Network with CAPA
Remote Control
//
-// $Id: menu.html,v 1.98 2003/05/23 16:37:30 www Exp $
+// $Id: menu.html,v 1.99 2003/05/24 12:43:54 www Exp $
//
// Copyright Michigan State University Board of Trustees
//
@@ -138,6 +138,14 @@ function advanceclock() {
setTimeout('advanceclock();',1000);
}
+function windowloaded(wname) {
+ if (wname=='loncapaclient') { noclient=0; }
+}
+
+function windowunloaded(wname) {
+ if (wname=='loncapaclient') { noclient=1;}
+}
+
function windowcheck() {
if (noclient || (clientwindow==null || clientwindow.closed)) {
clientwindow=window.open("http://"+clienthost+"/",'',
@@ -280,7 +288,7 @@ function go(url) {
currentURL = null;
currentSymb= null;
clientwindow.window.location.href="http://"+clienthost+url;
- noclient=0;
+ clientwindow.name='loncapaclient';
}
}
@@ -295,7 +303,6 @@ function gopost(url,postdata) {
this.document.server.url.value='';
this.document.server.postsymb.value='';
this.document.server.submit();
- noclient=0;
}
}
@@ -310,7 +317,6 @@ function gocmd(url,cmd) {
this.document.server.url.value=currentURL;
this.document.server.postsymb.value=currentSymb;
this.document.server.submit();
- noclient=0;
}
}