[LON-CAPA-cvs] cvs: loncom /xml scripttag.pm

albertel lon-capa-cvs@mail.lon-capa.org
Wed, 13 Nov 2002 23:15:40 -0000


albertel		Wed Nov 13 18:15:40 2002 EDT

  Modified files:              
    /loncom/xml	scripttag.pm 
  Log:
  - more XHTML esque
  
  
Index: loncom/xml/scripttag.pm
diff -u loncom/xml/scripttag.pm:1.81 loncom/xml/scripttag.pm:1.82
--- loncom/xml/scripttag.pm:1.81	Wed Nov  6 18:05:02 2002
+++ loncom/xml/scripttag.pm	Wed Nov 13 18:15:40 2002
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # <script> definiton
 #
-# $Id: scripttag.pm,v 1.81 2002/11/06 23:05:02 albertel Exp $
+# $Id: scripttag.pm,v 1.82 2002/11/13 23:15:40 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -75,11 +75,11 @@
 	&Apache::run::run($bodytext,$safeeval);
 	if (($target eq 'answer') && ($Apache::lonhomework::viewgrades == 'F')) {
 	    $Apache::lonxml::evaluate--;
-	    $result.="<a href=\"javascript:newWindow=open(\'\',\'new_W\',\'width=500,height=200,scrollbars=1\');newWindow.document.open(\'text/html\',\'replace\');newWindow.document.writeln(\'<html><head><title>newwindow</title></head><body bgcolor=&quot;#FFFFFF&quot;><pre>";
+	    $result.="<a href=\"javascript:newWindow=open(\'\',\'new_W\',\'width=500,height=200,scrollbars=1\');newWindow.document.open(\'text/html\',\'replace\');newWindow.document.writeln(\'&lt;html&gt;&lt;head&gt;&lt;title&gt;newwindow&lt;/title&gt;&lt;/head&gt;&lt;body bgcolor=&quot;#FFFFFF&quot;&gt;&lt;pre&gt;";
 	    my $listing= &HTML::Entities::encode(&Apache::run::dump($target,$safeeval));
 
 	    $result.=$listing;
-	    $result.= "</pre></body></html>\');newWindow.document.close();void(0);\">Script Vars</a><br />";
+	    $result.= "&lt;/pre&gt;&lt;/body&gt;&lt;/html&gt;\');newWindow.document.close();void(0);\">Script Vars</a><br />";
 	}
     } elsif ($target eq "edit" ) {
       #&Apache::run::run($bodytext,$safeeval);