version 1.14, 2000/09/14 20:57:49
|
version 1.15, 2000/09/19 18:05:21
|
Line 15 sub BEGIN {
|
Line 15 sub BEGIN {
|
sub start_script { |
sub start_script { |
my ($target,$token,$parstack,$parser,$safeeval)=@_; |
my ($target,$token,$parstack,$parser,$safeeval)=@_; |
my $result=""; |
my $result=""; |
|
$safeeval->share($Apache::scripttag::start_script::result); |
# my $bodytext=$$parser[$#$parser]->get_text("/script"); |
# my $bodytext=$$parser[$#$parser]->get_text("/script"); |
my $bodytext=&Apache::lonxml::get_all_text("script",$$parser[$#$parser]); |
my $bodytext=&Apache::lonxml::get_all_text("script",$$parser[$#$parser]); |
|
|
Line 23 sub start_script {
|
Line 24 sub start_script {
|
} |
} |
|
|
# print "<br> script runs $bodytext</br>"; |
# print "<br> script runs $bodytext</br>"; |
$result = &Apache::run::run($bodytext,$safeeval); |
&Apache::run::run($bodytext,$safeeval); |
|
|
if ($target eq "edit" ) { |
if ($target eq "edit" ) { |
$result= "<br> <$token->[1]> output: <br>$bodytext<br>Source:<br>"; |
$result= "<br> <$token->[1]> output: <br>$bodytext<br>Source:<br>"; |