--- loncom/interface/lonhelper.pm 2005/04/11 18:13:39 1.102 +++ loncom/interface/lonhelper.pm 2005/09/28 19:02:02 1.114 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # .helper XML handler to implement the LON-CAPA helper # -# $Id: lonhelper.pm,v 1.102 2005/04/11 18:13:39 albertel Exp $ +# $Id: lonhelper.pm,v 1.114 2005/09/28 19:02:02 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -1188,7 +1188,8 @@ sub render { if ($self->{'multichoice'}) { $result .= < + SCRIPT } @@ -1265,13 +1267,13 @@ BUTTONS my $id = &new_id(); $result .= "\n \n"; $result .= "[1],"<>&\"'") . "'"; if ($checkedChoices{$choice->[1]}) { - $result .= " checked "; + $result .= " checked='checked' "; } - $result .= qq{id="$id"}; + $result .= qq{id="id$id"}; my $choiceLabel = $choice->[0]; if ($choice->[4]) { # if we need to evaluate this choice $choiceLabel = "sub { my $helper = shift; my $state = shift;" . @@ -1279,7 +1281,7 @@ BUTTONS $choiceLabel = eval($choiceLabel); $choiceLabel = &$choiceLabel($helper, $self); } - $result .= "/> ".qq{