From: Mike G. v. a. <we...@ma...> - 2008-05-23 15:07:09
|
Log Message: ----------- modifications to the <body> tag and to the submit tag so that applets are triggered upon submission of the problem. This is still a work in progress -- the timing issues with applets appear to be significant. Modified Files: -------------- webwork2/lib/WeBWorK/ContentGenerator: Problem.pm Revision Data ------------- Index: Problem.pm =================================================================== RCS file: /webwork/cvs/system/webwork2/lib/WeBWorK/ContentGenerator/Problem.pm,v retrieving revision 1.213 retrieving revision 1.214 diff -Llib/WeBWorK/ContentGenerator/Problem.pm -Llib/WeBWorK/ContentGenerator/Problem.pm -u -r1.213 -r1.214 --- lib/WeBWorK/ContentGenerator/Problem.pm +++ lib/WeBWorK/ContentGenerator/Problem.pm @@ -985,7 +985,7 @@ # main form print "\n"; - print CGI::start_form(-method=>"POST", -action=> $r->uri,-name=>"problemMainForm", onSubmit=>"submitAction()"); + print CGI::start_form(-method=>"POST", -action=> $r->uri,-name=>"problemMainForm", onsubmit=>"submitAction()"); print $self->hidden_authen_fields; print "\n"; print CGI::start_div({class=>"problem"}); @@ -1037,7 +1037,10 @@ # apply to the student's records, not the professor's. print CGI::submit(-name=>"submitAnswers", -label=>"Submit Answers for $effectiveUser"); } else { - print CGI::submit(-name=>"submitAnswers", -label=>"Submit Answers"); + #print CGI::submit(-name=>"submitAnswers", -label=>"Submit Answers", -onclick=>"alert('submit button clicked')"); + print CGI::submit(-name=>"submitAnswers", -label=>"Submit Answers", -onclick=>""); + # FIXME for unknown reasons the -onclick label seems to have to be there in order to allow the forms onsubmit to trigger + # WFT??? } } |