Diff for /loncom/xml/scripttag.pm between versions 1.69 and 1.70

version 1.69, 2002/03/28 22:02:27 version 1.70, 2002/04/10 15:21:29
Line 62  sub start_script { Line 62  sub start_script {
       if (($target eq 'answer') && ($Apache::lonhomework::viewgrades == 'F')) {        if (($target eq 'answer') && ($Apache::lonhomework::viewgrades == 'F')) {
  $Apache::lonxml::evaluate--;   $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(\'<html><head><title>newwindow</title></head><body bgcolor=&quot;#FFFFFF&quot;><pre>";
  my $listing= &Apache::run::dump($target,$safeeval);   my $listing= &HTML::Entities::encode(&Apache::run::dump($target,$safeeval));
  $listing =~ s/\n/\\n/g;  
  $listing =~ s/\"/&quot;/g;  
  $listing =~ s/\'/&rsquo;/g;  
  $listing =~ s/</&lt;/g;  
  $listing =~ s/>/&gt;/g;  
  $listing =~ s/&/&amp;/g;  
  $result.=$listing;   $result.=$listing;
  $result.= "</pre></body></html>\');newWindow.document.close();void(0);\">Script Vars</a><br />";   $result.= "</pre></body></html>\');newWindow.document.close();void(0);\">Script Vars</a><br />";
       }        }

Removed from v.1.69  
changed lines
  Added in v.1.70


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