--- loncom/homework/response.pm 2001/01/22 19:58:09 1.20
+++ loncom/homework/response.pm 2001/04/04 19:17:50 1.23
@@ -7,7 +7,7 @@ package Apache::response;
use strict;
sub BEGIN {
- &Apache::lonxml::register('Apache::response',('responseparam','caparesponse','numericalresponse','radiobuttonresponse','optionresponse'));
+ &Apache::lonxml::register('Apache::response',('responseparam','caparesponse','numericalresponse','radiobuttonresponse','optionresponse','imageresponse','essayresponse'));
}
sub start_response {
@@ -88,33 +88,43 @@ sub start_numericalresponse {
require Apache::caparesponse;
import Apache::caparesponse;
my ($target,$token,$parstack,$parser,$safeeval,$style)=@_;
- Apache::caparesponse::start_numericalresponse($target,$token,$parstack,$parser,$safeeval,$style);;
- return "";
+ return &Apache::caparesponse::start_numericalresponse($target,$token,$parstack,$parser,$safeeval,$style);
}
sub start_caparesponse {
require Apache::caparesponse;
import Apache::caparesponse;
my ($target,$token,$parstack,$parser,$safeeval,$style)=@_;
-# print "\n
\nsimple caparesponse\n";
- Apache::caparesponse::start_caparesponse($target,$token,$parstack,$parser,$safeeval,$style);;
- return "";
+# print "\n
\nsimple caparesponse\n";
+ return &Apache::caparesponse::start_caparesponse($target,$token,$parstack,$parser,$safeeval,$style);
}
sub start_radiobuttonresponse {
require Apache::radiobuttonresponse;
import Apache::radiobuttonresponse;
my ($target,$token,$parstack,$parser,$safeeval,$style)=@_;
- Apache::radiobuttonresponse::start_radiobuttonresponse($target,$token,$parstack,$parser,$safeeval,$style);;
- return "";
+ return &Apache::radiobuttonresponse::start_radiobuttonresponse($target,$token,$parstack,$parser,$safeeval,$style);
}
sub start_optionresponse {
require Apache::optionresponse;
import Apache::optionresponse;
my ($target,$token,$parstack,$parser,$safeeval,$style)=@_;
- Apache::optionresponse::start_optionresponse($target,$token,$parstack,$parser,$safeeval,$style);;
- return "";
+ return &Apache::optionresponse::start_optionresponse($target,$token,$parstack,$parser,$safeeval,$style);
+}
+
+sub start_imageresponse {
+ require Apache::imageresponse;
+ import Apache::imageresponse;
+ my ($target,$token,$parstack,$parser,$safeeval,$style)=@_;
+ return &Apache::imageresponse::start_imageresponse($target,$token,$parstack,$parser,$safeeval,$style);
+}
+
+sub start_essayresponse {
+ require Apache::essayresponse;
+ import Apache::essayresponse;
+ my ($target,$token,$parstack,$parser,$safeeval,$style)=@_;
+ return &Apache::essayresponse::start_essayresponse($target,$token,$parstack,$parser,$safeeval,$style);
}
sub start_responseparam {