--- loncom/homework/caparesponse/caparesponse.pm 2002/11/07 19:45:16 1.70 +++ loncom/homework/caparesponse/caparesponse.pm 2002/11/08 20:36:27 1.71 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # caparesponse definition # -# $Id: caparesponse.pm,v 1.70 2002/11/07 19:45:16 albertel Exp $ +# $Id: caparesponse.pm,v 1.71 2002/11/08 20:36:27 sakharuk Exp $ # # Copyright Michigan State University Board of Trustees # @@ -223,6 +223,7 @@ sub end_numericalresponse { my @alphabet = ('A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P', 'Q','R','S','T','U','V','W','X','Y','Z'); if ($target eq 'web') { + my $id=$Apache::inputtags::response[-1]; $result.= ''; for ($ind=0;$ind<$number_of_bubbles;$ind++) { my $ans; @@ -241,7 +242,7 @@ sub end_numericalresponse { } $ans = sprintf('%.'.$format,$bubbles_values[$ind]); } - $result.=''; + $result.=''; } $result.='
'.$alphabet[$ind].': '.$ans.''.$alphabet[$ind].': '.$ans.'
'; } elsif ($target eq 'tex') {