--- loncom/html/res/adm/pages/menu.html 2000/09/19 14:54:43 1.4 +++ loncom/html/res/adm/pages/menu.html 2000/10/03 19:38:11 1.7 @@ -3,6 +3,8 @@ The LearningOnline Network with CAPA Remote Control 6/12/00,6/13,6/14,6/15 Gerd Kortemeyer +Sept Ben Tyszka +10/2,10/3 Gerd Kortemeyer --> LON-CAPA Remote @@ -23,9 +25,10 @@ function windowcheck() { if (clientwindow.closed) { clientwindow=window.open("http://"+clienthost+"/"); } + clientwindow.name='loncapaclient'; } -function logout() { +function logout () { windowcheck(); clientwindow.window.location.href="http://"+clienthost+"/adm/logout"; } @@ -66,22 +69,38 @@ function setstatus(tp,bt) { function go(url) { this.document['led'].src="ledsend.gif"; if (url!='') { + windowcheck(); + clientwindow.window.location.href="http://"+clienthost+url; + } +} + +function gopost(url,postdata) { + this.document['led'].src="ledsend.gif"; + if (url!='') { + windowcheck(); + this.document.server.postdata=postdata; + this.document.server.action="http://"+clienthost+url; + this.document.server.submit(); } } function annotate() { go(''); - window.open("http://kirk.lite.msu.edu/adm/annotations/?url_new="+clientwindow.location.href, "Annotator", "width=365,height=265,scrollbars=0"); + window.open("http://"+clienthost+"/adm/annotations?url_new=" + +clientwindow.location.href, "Annotator", + "width=365,height=265,scrollbars=0"); } function set_bookmark() { go(''); - prompt("Please enter a name for this bookmark.", clientwindow.window.location.href); + prompt("Please enter a name for this bookmark.", + clientwindow.window.location.href); } function edit_bookmarks() { go(''); - window.open("http://kirk.lite.msu.edu/adm/bookmarks","BookmarkPal", "width=400,height=505,scrollbars=0"); + window.open("http://"+clienthost+"/adm/bookmarks", + "BookmarkPal", "width=400,height=505,scrollbars=0"); } @@ -212,11 +231,13 @@ function edit_bookmarks() { - +
+ +