--- loncom/homework/imageresponse.pm 2006/05/18 22:02:03 1.77 +++ loncom/homework/imageresponse.pm 2007/02/22 01:25:31 1.81 @@ -2,7 +2,7 @@ # The LearningOnline Network with CAPA # image click response style # -# $Id: imageresponse.pm,v 1.77 2006/05/18 22:02:03 albertel Exp $ +# $Id: imageresponse.pm,v 1.81 2007/02/22 01:25:31 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -37,6 +37,9 @@ use Apache::londefdef(); use Apache::Constants qw(:common :http); use Apache::lonlocal; use Apache::lonnet; +use lib '/home/httpd/lib/perl/'; +use LONCAPA; + BEGIN { &Apache::lonxml::register('Apache::imageresponse',('imageresponse')); @@ -131,7 +134,7 @@ sub prep_image { my $respid=$Apache::inputtags::response['-1']; my $id=&Apache::loncommon::get_cgi_id(); my (%x,$i); - $x{"cgi.$id.BGIMG"}=&Apache::lonnet::escape($image); + $x{"cgi.$id.BGIMG"}=&escape($image); my ($x,$y)=split(/:/,$Apache::lonhomework::history{"resource.$part.$respid.submission"}); #draws 2 xs on the image at the clicked location #one in white and then one in red on top of the one in white @@ -343,6 +346,7 @@ sub end_foilgroup { if ($target eq 'web' || $target eq 'tex') { $result=&displayfoils($target,@whichopt); + $Apache::lonxml::post_evaluate=0; } elsif ($target eq 'grade') { if ( defined $env{'form.submitted'}) { &gradefoils(@whichopt); } } elsif ( $target eq 'analyze') {