Diff for /loncom/xml/scripttag.pm between versions 1.34 and 1.35

version 1.34, 2001/02/22 00:49:03 version 1.35, 2001/03/27 16:56:56
Line 131  sub start_window { Line 131  sub start_window {
   my $result = '';    my $result = '';
   if ($target eq 'web') {    if ($target eq 'web') {
     &Apache::lonxml::startredirection;      &Apache::lonxml::startredirection;
   }     }  elsif ($target eq 'tex') {
          $result = '\footnote{';
      }
   return $result;      return $result;  
 }  }
   
Line 141  sub end_window { Line 143  sub end_window {
   if ($target eq 'web') {    if ($target eq 'web') {
     my $output=&Apache::lonxml::endredirection;      my $output=&Apache::lonxml::endredirection;
     $output =~ s/\"/\&quot\;/g;      $output =~ s/\"/\&quot\;/g;
     $result = "<a href=\"javascript:newWindow=open(\'\',\'new_W\',\'width=500,height=200\');newWindow.document.open(\'text/html\',\'replace\');newWindow.document.writeln(\'<html><head><title>newwindow</title></head><body bgcolor=&quot;#FFFFFF&quot;> $output </body></html>\');newWindow.document.close();void(0);\"><sup>*</sup></a>";      $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;> $output </body></html>\');newWindow.document.close();void(0);\"><sup>*</sup></a>";
     } elsif ($target eq 'tex') {
         $result = '}';
   } else {    } else {
     $result = '';        $result = '';
   }    }
   return $result;     return $result; 
 }  }

Removed from v.1.34  
changed lines
  Added in v.1.35


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