File:  [LON-CAPA] / doc / window_handling.txt
Revision 1.1: download - view: text, annotated - select for diffs
Sun Apr 29 19:50:06 2001 UTC (22 years, 11 months ago) by harris41
Branches: MAIN
CVS tags: HEAD
some beginning notes on window handling

The following files have window handling:
(find . -type f | xargs grep -s -l -i '<script' | xargs grep -s -l -i '\.open')

./loncom/homework/lonhomework.pm
./loncom/html/res/adm/pages/annotator/admannotations.pm
./loncom/html/res/adm/pages/homeworkmenu.html
./loncom/html/res/adm/pages/menu.html
./loncom/html/res/adm/pages/bookmarkmenu/bookmarkpal_old.html
./loncom/interface/londropadd.pm
./loncom/interface/lonmenu.pm
./loncom/interface/lonnavmaps.pm
./loncom/interface/lonparmset.pm
./loncom/interface/loncreateuser.pm
./loncom/xml/scripttag.pm
./rat/client/code.html
./rat/client/parameter.html

things that refer to loncapaclient
find . -type f | xargs grep loncapaclient

#########################################
# ./loncom/html/res/adm/pages/menu.html
#

clienthost=window.location.host;
clientwindow=opener;

function windowcheck() {
   if (clientwindow.closed) {
      clientwindow=window.open("http://"+clienthost+"/"); 
   }
   clientwindow.name='loncapaclient';
}

function logout () {
   windowcheck();
   if (clientwindow.status!='MenuControl:nologout')
   {   
      clientwindow.window.location.href="http://"+clienthost+"/adm/logout";
   }
}


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>