version 1.23, 2001/03/21 15:56:57
|
version 1.30, 2001/05/09 22:59:21
|
Line 9 Jan Guy Albertelli
|
Line 9 Jan Guy Albertelli
|
5/1/1 Gerd Kortemeyer |
5/1/1 Gerd Kortemeyer |
2/19 Guy Albertelli |
2/19 Guy Albertelli |
3/21 Gerd Kortemeyer |
3/21 Gerd Kortemeyer |
|
4/30 Ben Tyszka |
|
5/2 Scott Harrison |
|
5/4,5/9 Gerd Kortemeyer |
--> |
--> |
<head> |
<head> |
<title>LON-CAPA Remote</title> |
<title>LON-CAPA Remote</title> |
Line 27 statustop='';
|
Line 30 statustop='';
|
statusbot=''; |
statusbot=''; |
active=0; |
active=0; |
|
|
|
var currentURL=''; |
|
var currentStale=1; |
|
|
|
// not used (yet) |
|
// var w_Annotator; |
|
// var w_bmquery; |
|
// var w_BookmarkPal; |
|
// var w_LONcatInfo; |
|
|
|
////////////////////////////////////// |
|
var w_Annotator_flag=-1; |
|
var w_bmquery_flag=-1; |
|
var w_BookmarkPal_flag=-1; |
|
var w_LONcatInfo_flag=-1; |
|
// 1 means currently open |
|
// 0 means closed (but has been open) |
|
// -1 means never yet opened/defined |
|
/////////////////////////////////////// |
|
|
clienthost=window.location.host; |
clienthost=window.location.host; |
clientwindow=opener; |
clientwindow=opener; |
|
|
Line 41 function logout () {
|
Line 63 function logout () {
|
windowcheck(); |
windowcheck(); |
if (clientwindow.status!='MenuControl:nologout') |
if (clientwindow.status!='MenuControl:nologout') |
{ |
{ |
|
if (w_Annotator_flag!=-1 && annotator && !annotator.closed) { |
|
annotator.close(); |
|
} |
|
if (w_bmquery_flag!=-1 && bmquery && !bmquery.closed) { |
|
bmquery.close(); |
|
} |
|
if (w_BookmarkPal_flag!=-1 && bookmarkpal && !bookmarkpal.closed) { |
|
bookmarkpal.close(); |
|
} |
|
if (w_LONcatInfo_flag!=-1 && loncatinfo && !loncatinfo.closed) { |
|
loncatinfo.close(); |
|
} |
clientwindow.window.location.href="http://"+clienthost+"/adm/logout"; |
clientwindow.window.location.href="http://"+clienthost+"/adm/logout"; |
} |
} |
} |
} |
Line 108 function gopost(url,postdata) {
|
Line 142 function gopost(url,postdata) {
|
} |
} |
|
|
function annotate() { |
function annotate() { |
|
w_Annotator_flag=1; |
annotator=window.open('','Annotator','width=365,height=265,scrollbars=0'); |
annotator=window.open('','Annotator','width=365,height=265,scrollbars=0'); |
annotator.document.write( |
annotator.document.write( |
"<html><body onload='Javascript:document.goannotate.submit();'>" |
"<html><body onload='Javascript:document.goannotate.submit();'>" |
Line 120 function annotate() {
|
Line 155 function annotate() {
|
|
|
function set_bookmark() { |
function set_bookmark() { |
go(''); |
go(''); |
prompt("Please enter a name for this bookmark.", |
clienttitle="Enter Title"; |
clientwindow.window.location.href); |
clienthref="Enter Address"; |
|
w_bmquery_flag=1; |
|
bmquery=window.open('','bmquery','width=365,height=165,scrollbars=0'); |
|
bmquery.document.write( |
|
"<html><body bgcolor='bbbbbb'><center><form method='post'" |
|
+" name='newlink' action='/adm/bookmarks' target='bmquery' " |
|
+">\n <table width=340 height=150 " |
|
+"bgcolor='ffffff' align=center><tr><td>Link Name:<br><input " |
|
+"type='text' name='title' size=45 value='"+clienttitle+"'>" |
|
+"<br>Address:<br><input type='text' name='address' size='45' " |
|
+"value='"+clienthref+"'><br><center><input type='submit' " |
|
+"value='Save'> <input type='button' value='Close (no save)' " |
|
+"onclick='javascript:window.close();'></center></td>" |
|
+"</tr></table></form></center></body></html>"); |
|
bmquery.document.close(); |
} |
} |
|
|
function edit_bookmarks() { |
function edit_bookmarks() { |
go(''); |
go(''); |
window.open("http://"+clienthost+"/adm/bookmarks", |
w_BookmarkPal_flag=1; |
|
bookmarkpal=window.open("http://"+clienthost+"/adm/bookmarks", |
"BookmarkPal", "width=400,height=505,scrollbars=0"); |
"BookmarkPal", "width=400,height=505,scrollbars=0"); |
} |
} |
|
|
function catalog_info() { |
function catalog_info() { |
go(''); |
go(''); |
window.open(clientwindow.window.location.href+'.meta',"LONcatInfo"); |
w_LONcatInfo_flag=1; |
|
loncatinfo=window.open(clientwindow.window.location.href+'.meta',"LONcatInfo"); |
} |
} |
// --> |
// --> |
</script> |
</script> |