[LON-CAPA-cvs] cvs: rat /client loading.html doc/loncapafiles loncapafiles.lpml loncom/html/res/adm/pages menu.html

www lon-capa-cvs@mail.lon-capa.org
Thu, 20 Feb 2003 21:13:33 -0000


www		Thu Feb 20 16:13:33 2003 EDT

  Added files:                 
    /rat/client	loading.html 

  Modified files:              
    /doc/loncapafiles	loncapafiles.lpml 
    /loncom/html/res/adm/pages	menu.html 
  Log:
  Bug #1253
  Attempting to get a better handle on the timing of loading a blank window.
  This might be helpful in other occassional weirdness situations, for example
  in the Full RAT.
  
  
Index: doc/loncapafiles/loncapafiles.lpml
diff -u doc/loncapafiles/loncapafiles.lpml:1.216 doc/loncapafiles/loncapafiles.lpml:1.217
--- doc/loncapafiles/loncapafiles.lpml:1.216	Thu Feb 13 17:19:23 2003
+++ doc/loncapafiles/loncapafiles.lpml	Thu Feb 20 16:13:33 2003
@@ -2,7 +2,7 @@
  "http://lpml.sourceforge.net/DTD/lpml.dtd">
 <!-- loncapafiles.lpml -->
 
-<!-- $Id: loncapafiles.lpml,v 1.216 2003/02/13 22:19:23 albertel Exp $ -->
+<!-- $Id: loncapafiles.lpml,v 1.217 2003/02/20 21:13:33 www Exp $ -->
 
 <!--
 
@@ -3407,6 +3407,14 @@
 <categoryname>interface file</categoryname>
 <description>
 A blank page with very minimal HTML structural elements.
+</description>
+</file>
+<file>
+<source>rat/client/loading.html</source>
+<target dist='default'>home/httpd/html/adm/rat/loading.html</target>
+<categoryname>interface file</categoryname>
+<description>
+A blank page which calls drawwindow in its opener after being loaded.
 </description>
 </file>
 <fileglob>
Index: loncom/html/res/adm/pages/menu.html
diff -u loncom/html/res/adm/pages/menu.html:1.86 loncom/html/res/adm/pages/menu.html:1.87
--- loncom/html/res/adm/pages/menu.html:1.86	Thu Feb 13 15:35:39 2003
+++ loncom/html/res/adm/pages/menu.html	Thu Feb 20 16:13:33 2003
@@ -4,7 +4,7 @@
 Remote Control
 
 //
-// $Id: menu.html,v 1.86 2003/02/13 20:35:39 www Exp $
+// $Id: menu.html,v 1.87 2003/02/20 21:13:33 www Exp $
 //
 // Copyright Michigan State University Board of Trustees
 //
@@ -60,7 +60,7 @@
 var clockdelta=0;
 
 var w_extdisp_flag=-1;
-var extdisp;
+var extdisp=null;
 
 var autologout=1;
 
@@ -345,8 +345,11 @@
 function extenddisp() {
    go('');
    w_extdisp_flag=1;
-   extdisp=window.open("http://"+clienthost+"/adm/rat/empty.html",
+   extdisp=window.open("http://"+clienthost+"/adm/rat/loading.html",
                "ExtDisp", "scrollbars=1,width=400,height=450");
+}
+
+function drawwindow() {
    extdisp.document.clear();
    extdisp.document.writeln(
   '<html><body bgcolor="#666666" text="#DDDDDD" link="#EEEEEE" '+
@@ -394,6 +397,7 @@
    extdisp.document.writeln('</table></body></html>');
    extdisp.document.close();
 }
+
 function edit_bookmarks() {
    go('');
    w_BookmarkPal_flag=1;

Index: rat/client/loading.html
+++ rat/client/loading.html
<html>
<body bgcolor="#FFFFFF" onLoad="opener.drawwindow();">
Loading ...
</body>
</html>