version 1.11, 2001/04/10 22:06:59
|
version 1.12, 2001/05/31 22:37:11
|
Line 63 sub end_numericalhint {
|
Line 63 sub end_numericalhint {
|
my ($target,$token,$parstack,$parser,$safeeval,$style)=@_; |
my ($target,$token,$parstack,$parser,$safeeval,$style)=@_; |
my $result; |
my $result; |
if ($target eq 'web') { |
if ($target eq 'web') { |
my $args =''; |
|
$safeeval->share_from('capa',['&caparesponse_capa_check_answer']); |
$safeeval->share_from('capa',['&caparesponse_capa_check_answer']); |
if ( $#$parstack > -1 ) { $args=$$parstack[$#$parstack]; } |
my $name= &Apache::lonxml::get_param('name',$parstack,$safeeval); |
my $name = &Apache::run::run("{$args;".'return $name}',$safeeval); |
|
my $response = $Apache::lonhomework::history{"resource.$Apache::inputtags::part.$Apache::inputtags::response['-1'].submission"}; |
my $response = $Apache::lonhomework::history{"resource.$Apache::inputtags::part.$Apache::inputtags::response['-1'].submission"}; |
&Apache::lonxml::debug("hintgroup is using $response<br />\n"); |
&Apache::lonxml::debug("hintgroup is using $response<br />\n"); |
my $expression="&caparesponse_check_list('".$response."','". |
my $expression="&caparesponse_check_list('".$response."','". |
Line 91 sub start_hintpart {
|
Line 89 sub start_hintpart {
|
my $show ='0'; |
my $show ='0'; |
|
|
if ($target eq 'web') { |
if ($target eq 'web') { |
my $args =''; |
my $on= &Apache::lonxml::get_param('on',$parstack,$safeeval); |
if ( $#$parstack > -1 ) { $args=$$parstack[$#$parstack]; } |
|
my $on = &Apache::run::run("{$args;".'return $on}',$safeeval); |
|
&Apache::lonxml::debug("hintpart sees $on and ,$#Apache::hint::which"); |
&Apache::lonxml::debug("hintpart sees $on and ,$#Apache::hint::which"); |
if ( $on eq 'default' && $#Apache::hint::which == '-1') { |
if ( $on eq 'default' && $#Apache::hint::which == '-1') { |
$show=1; |
$show=1; |