[LON-CAPA-cvs] cvs: loncom /html/res/adm/pages menu.html

matthew lon-capa-cvs@mail.lon-capa.org
Mon, 06 May 2002 21:59:29 -0000


matthew		Mon May  6 17:59:29 2002 EDT

  Modified files:              
    /loncom/html/res/adm/pages	menu.html 
  Log:
  Initialize values to '' instead of null.  The browsers seem to handle going
  to url '' better than url null.  BUG 385.
  
  
Index: loncom/html/res/adm/pages/menu.html
diff -u loncom/html/res/adm/pages/menu.html:1.48 loncom/html/res/adm/pages/menu.html:1.49
--- loncom/html/res/adm/pages/menu.html:1.48	Fri Apr  5 13:47:42 2002
+++ loncom/html/res/adm/pages/menu.html	Mon May  6 17:59:29 2002
@@ -4,7 +4,7 @@
 Remote Control
 
 //
-// $Id: menu.html,v 1.48 2002/04/05 18:47:42 matthew Exp $
+// $Id: menu.html,v 1.49 2002/05/06 21:59:29 matthew Exp $
 //
 // Copyright Michigan State University Board of Trustees
 //
@@ -44,6 +44,11 @@
 YEAR=2002
 March 2002 Matthew Hall
 3/19 Gerd Kortemeyer
+5/6/02 Matthew Hall
+
+// Note: use of style="background-image: url(remotebg.gif)"
+// in body tag causes trouble for NS4.x on multiple platforms. 
+
 -->
 <head>
 <title>LON-CAPA Remote</title>
@@ -52,7 +57,10 @@
 
 <body bgcolor="#BBBBBB" 
       background="remotebg.gif"
-      onUnload="logout();">
+      onUnload="logout();"
+      >
+<style type="text/css">
+</style>
 <basefont size="1" />
 
 <script type="text/javascript">
@@ -90,9 +98,9 @@
 for (var i=1;i<=3;i++) {
    for (var j=1;j<=10;j++) {
       var index = 10*j+i;
-      hr[index]=null;
-      db[index]=null;
-      dt[index]=null;
+      hr[index]='';
+      db[index]='';
+      dt[index]='';
    }
 }
 
@@ -143,8 +151,8 @@
   this.window.focus();
   if (utext == null) { utext = '';}
   if (ltext == null) { ltext = '';}
-  if (typeof(utext)=="undefined") { utext=''; }
-  if (typeof(ltext)=="undefined") { ltext=''; }
+  if (typeof(utext)!="string") { utext=''; }
+  if (typeof(ltext)!="string") { ltext=''; }
   if ((utext=='') && (ltext=='')) {
      utext=statustop;
      ltext=statusbot;