--- loncom/xml/scripttag.pm 2006/03/29 22:41:39 1.137 +++ loncom/xml/scripttag.pm 2007/08/30 22:56:43 1.143 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # '; + &Apache::loncommon::lonhttpd_port().'\';'; } return ('','no'); } @@ -116,7 +124,7 @@ sub start_script { ($env{'form.answer_output_mode'} ne 'tex') && ($Apache::lonhomework::viewgrades == 'F')) { $Apache::lonxml::evaluate--; - my (undef,undef,$udom,$uname)=&Apache::lonxml::whichuser(); + my (undef,undef,$udom,$uname)=&Apache::lonnet::whichuser(); my $windowopen=&Apache::lonhtmlcommon::javascript_docopen(); my $start_page = &Apache::loncommon::start_page('Script Vars', undef, @@ -126,16 +134,19 @@ sub start_script { my $end_page = &Apache::loncommon::end_page({'js_ready' => 1,}); - $result.="Script Vars
"; + &Apache::lonxml::add_script_result($script_var); } } elsif ($target eq "edit" ) { #&Apache::run::run($bodytext,$safeeval); @@ -388,7 +399,7 @@ sub start_import { my $dir=$location; $dir=~s:/[^/]*$::; # &Apache::lonxml::debug("directory $dir $location file $file \nEND\n"); - my $id= &Apache::lonxml::get_param('id',$parstack,$safeeval); + my $id= &Apache::lonxml::get_id($parstack,$safeeval); if (!$id) { $id=$Apache::lonxml::curdepth; } push(@Apache::inputtags::import,$id); push(@Apache::inputtags::importlist,$id); @@ -405,7 +416,7 @@ sub start_import { } elsif ($target eq 'modified') { $result=$token->[4].&Apache::edit::modifiedfield("/import",$parser); } elsif ($target eq 'meta') { - my $id= &Apache::lonxml::get_param('id',$parstack,$safeeval); + my $id= &Apache::lonxml::get_id($parstack,$safeeval); $result.='