--- loncom/homework/response.pm 2001/09/14 20:15:35 1.48
+++ loncom/homework/response.pm 2001/10/01 20:18:31 1.49
@@ -9,7 +9,7 @@ package Apache::response;
use strict;
sub BEGIN {
- &Apache::lonxml::register('Apache::response',('responseparam','caparesponse','numericalresponse','stringresponse','radiobuttonresponse','optionresponse','imageresponse','essayresponse','dataresponse'));
+ &Apache::lonxml::register('Apache::response',('responseparam','caparesponse','numericalresponse','formularesponse','stringresponse','radiobuttonresponse','optionresponse','imageresponse','essayresponse','dataresponse'));
}
sub start_response {
@@ -179,6 +179,13 @@ sub start_stringresponse {
return &Apache::caparesponse::start_stringresponse($target,$token,$tagstack,$parstack,$parser,$safeeval,$style);
}
+sub start_formularesponse {
+ require Apache::caparesponse;
+ import Apache::caparesponse;
+ my ($target,$token,$tagstack,$parstack,$parser,$safeeval,$style)=@_;
+ return &Apache::caparesponse::start_formularesponse($target,$token,$tagstack,$parstack,$parser,$safeeval,$style);
+}
+
sub start_numericalresponse {
require Apache::caparesponse;
import Apache::caparesponse;
@@ -349,8 +356,8 @@ sub answer_header {
$result = '
Answer for Part:'.
$Apache::inputtags::part. ' |
---|
'."\n";
} else {
- $result = 'Answer for Part:'.$Apache::inputtags::part.
- ' | '."\n";
+ $result = 'Answer for Part:'.
+ $Apache::inputtags::part. ' | '."\n";
}
return $result;
}