--- loncom/xml/scripttag.pm 2004/02/10 18:58:26 1.107 +++ loncom/xml/scripttag.pm 2004/02/24 21:12:48 1.110 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Script Vars
"; + $result.= "');newWindow.document.close();}Script Vars
"; } } elsif ($target eq "edit" ) { #&Apache::run::run($bodytext,$safeeval); @@ -138,7 +139,7 @@ sub start_script { } else { if ($target ne "meta") { $result = $token->[4]; - my $bodytext=&Apache::lonxml::get_all_text_unblanaced("/script",$parser); + my $bodytext=&Apache::lonxml::get_all_text_unbalanced("/script",$parser); $result.=$bodytext; } } @@ -182,7 +183,7 @@ sub start_display { } $Apache::lonxml::post_evaluate=0; } elsif ($target eq "edit" ) { - my $bodytext=&Apache::lonxml::get_all_text_unblanced("/display",$parser); + my $bodytext=&Apache::lonxml::get_all_text_unbalanced("/display",$parser); #$result = # "
<$token->[1]> output:
$bodytext
Source:
"; #$result.=&Apache::edit::editfield($token->[1],$bodytext,'',40,1);