Diff for /loncom/xml/scripttag.pm between versions 1.81 and 1.82

version 1.81, 2002/11/06 23:05:02 version 1.82, 2002/11/13 23:15:40
Line 75  sub start_script { Line 75  sub start_script {
  &Apache::run::run($bodytext,$safeeval);   &Apache::run::run($bodytext,$safeeval);
  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(\'&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));      my $listing= &HTML::Entities::encode(&Apache::run::dump($target,$safeeval));
   
     $result.=$listing;      $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" ) {      } elsif ($target eq "edit" ) {
       #&Apache::run::run($bodytext,$safeeval);        #&Apache::run::run($bodytext,$safeeval);

Removed from v.1.81  
changed lines
  Added in v.1.82


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