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/\"/\"\;/g; |
$output =~ s/\"/\"\;/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="#FFFFFF"> $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="#FFFFFF"> $output </body></html>\');newWindow.document.close();void(0);\"><sup>*</sup></a>"; |
|
} elsif ($target eq 'tex') { |
|
$result = '}'; |
} else { |
} else { |
$result = ''; |
$result = ''; |
} |
} |
return $result; |
return $result; |
} |
} |