Diff for /loncom/xml/scripttag.pm between versions 1.59 and 1.60

version 1.59, 2001/12/04 14:56:46 version 1.60, 2001/12/10 16:42:20
Line 59  sub start_script { Line 59  sub start_script {
     } elsif ( $target eq 'web' || $target eq 'tex' ||      } elsif ( $target eq 'web' || $target eq 'tex' ||
       $target eq 'grade' || $target eq 'answer') {        $target eq 'grade' || $target eq 'answer') {
       &Apache::run::run($bodytext,$safeeval);        &Apache::run::run($bodytext,$safeeval);
       if (($ENV{'request.state'} eq 'construct') && ($target eq 'answer')) {        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= &Apache::run::dump($target,$safeeval);
  $listing =~ s/\n/\\n/g;   $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.59  
changed lines
  Added in v.1.60


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