--- loncom/homework/inputtags.pm 2001/05/19 00:23:38 1.33 +++ loncom/homework/inputtags.pm 2001/06/01 15:52:50 1.34 @@ -30,9 +30,7 @@ sub initialize_inputtags { sub start_input { my ($parstack,$safeeval)=@_; - my $args =''; - if ( $#$parstack > -1 ) { $args=$$parstack[$#$parstack]; } - my $id = &Apache::run::run("{$args;".'return $id}',$safeeval); + my $id = &Apache::lonxml::get_param('id',$parstack,$safeeval); push (@Apache::inputtags::input,$id); push (@Apache::inputtags::inputlist,$id); return $id; @@ -49,11 +47,9 @@ sub start_textarea { my $id = &start_input($parstack,$safeeval); if ($target eq 'web') { my $oldresponse = $Apache::lonhomework::history{"resource.$Apache::inputtags::part.$Apache::inputtags::response['-1'].submission"}; - my $args =''; - if ( $#$parstack > -1 ) { $args=$$parstack[$#$parstack]; } - my $cols = &Apache::run::run("{$args;".'return $cols}',$safeeval); + my $cols = &Apache::lonxml::get_param('cols',$parstack,$safeeval); if ( $cols eq '') { $cols = 80; } - my $rows = &Apache::run::run("{$args;".'return $rows}',$safeeval); + my $rows = &Apache::lonxml::get_param('rows',$parstack,$safeeval); if ( $rows eq '') { $rows = 10; } $result= '