--- loncom/html/res/adm/pages/menu.html 2001/06/02 16:07:19 1.31
+++ loncom/html/res/adm/pages/menu.html 2001/11/29 19:26:25 1.40
@@ -2,6 +2,33 @@
LON-CAPA Remote
@@ -20,7 +49,6 @@ Jan Guy Albertelli
@@ -34,6 +62,7 @@ imgpath='/res/adm/pages/';
var currentURL='';
var currentStale=1;
+var menucltim;
// not used (yet)
// var w_Annotator;
@@ -85,38 +114,9 @@ function logout () {
}
}
-function checkurl () {
- if (currentURL) {
- if (currentStale) {
- clearbut(2,1);
- clearbut(2,3);
- clearbut(8,1);
- clearbut(8,2);
- clearbut(8,3);
- switchbutton(3,1,'reload.gif','return','location','go(currentURL)');
- } else {
- clearbut(3,1);
- switchbutton(8,1,'eval.gif','evaluate','this','gopost("/adm/evaluate",currentURL)');
- switchbutton(8,2,'fdbk.gif','feedback','on this','gopost("/adm/feedback",currentURL)');
- switchbutton(8,3,'prt.gif','prepare','printout','gopost("/adm/printout",currentURL)');
- switchbutton(2,1,'back.gif','backward','','gopost("/adm/flip","back:"+currentURL)');
- switchbutton(2,3,'forw.gif','forward','','gopost("/adm/flip","forward:"+currentURL)');
- }
- } else {
- clearbut(2,1);
- clearbut(2,3);
- clearbut(3,1);
- clearbut(8,1);
- clearbut(8,2);
- clearbut(8,3);
- }
- setTimeout('checkurl();',500);
-}
-
function activate () {
opener.menuloaded=1;
setTimeout('active=1;',2000);
- setTimeout('checkurl();',1500);
}
function deactivate () {
@@ -126,8 +126,8 @@ function deactivate () {
function display(utext,ltext) {
var i; var ch;
this.window.focus();
- if (utext==undefined) { utext=''; }
- if (ltext==undefined) { ltext=''; }
+ if (typeof(utext)=="undefined") { utext=''; }
+ if (typeof(ltext)=="undefined") { ltext=''; }
if ((utext=='') && (ltext=='')) {
utext=statustop;
ltext=statusbot;
@@ -159,15 +159,15 @@ function defdis() {
function switchbutton(row,col,imgsrc,texttop,textbot,action) {
var idx=10*row+col;
- this.document['b'+idx].src=imgpath+imgsrc;
+ this.document['b'+idx].src="http://"+clienthost+imgpath+imgsrc;
hr[idx]=action;
dt[idx]=texttop;
db[idx]=textbot;
-}
+}
function clearbut(row,col) {
var idx=10*row+col;
- this.document['b'+idx].src=imgpath+'empty.gif';
+ this.document['b'+idx].src="http://"+clienthost+imgpath+'empty.gif';
hr[idx]='javascript:defdis();';
dt[idx]='';
db[idx]='';
@@ -195,6 +195,20 @@ function gopost(url,postdata) {
if (url!='') {
this.document.server.action="http://"+clienthost+url;
this.document.server.postdata.value=postdata;
+ this.document.server.command.value='';
+ this.document.server.url.value='';
+ this.document.server.submit();
+ }
+}
+
+function gocmd(url,cmd) {
+ windowcheck();
+ this.document['led'].src="ledsend.gif";
+ if (url!='') {
+ this.document.server.action="http://"+clienthost+url;
+ this.document.server.postdata.value='';
+ this.document.server.command.value=cmd;
+ this.document.server.url.value=currentURL;
this.document.server.submit();
}
}
@@ -206,15 +220,20 @@ function annotate() {
""
+"");
annotator.document.close();
}
function set_bookmark() {
go('');
- clienttitle="Enter Title";
- clienthref="Enter Address";
+ if (currentStale) {
+ clienttitle="Enter Title";
+ clienthref=currentURL;
+ } else {
+ clienttitle=clientwindow.document.title;
+ clienthref=clientwindow.location.pathname;
+ }
w_bmquery_flag=1;
bmquery=window.open('','bmquery','width=365,height=165,scrollbars=0');
bmquery.document.write(
@@ -334,7 +353,13 @@ function catalog_info() {
|
- |
+ |
+ |
+
+
+
+ |
+ |
@@ -345,8 +370,13 @@ function catalog_info() {
>
+
+
+
+
+