Diff for /loncom/homework/response.pm between versions 1.168 and 1.171

version 1.168, 2007/05/31 04:15:52 version 1.171, 2007/06/19 19:34:18
Line 852  Returns either the exact text of the sub Line 852  Returns either the exact text of the sub
 converted to something usable.  converted to something usable.
   
 Optional Arguments:  Optional Arguments:
   $offset - if a problem has more than one bubble response, pass in the number    $offset - (defaults to 1) if a problem has more than one bubble
             of the bubble wanted              response, pass in the number of the bubble wanted, (the
               first bubble associated with a problem has an offset of 1,
               the second bubble is 2
   
   $resulttype - undef    -> a number between 0 and 25    $resulttype - undef    -> a number between 0 and 25
                 'A is 1' -> a number between 1 and 26                  'A is 1' -> a number between 1 and 26
                 'letter' -> a letter between 'A' and 'Z'                  'letter' -> a letter between 'A' and 'Z'
Line 865  sub getresponse { Line 868  sub getresponse {
     my $formparm='form.HWVAL_'.$Apache::inputtags::response['-1'];      my $formparm='form.HWVAL_'.$Apache::inputtags::response['-1'];
     my $response;      my $response;
     if (!defined($offset)) {      if (!defined($offset)) {
  $temp=1;   $offset=1;
     } else {      } else {
  $formparm.=":$offset";   $formparm.=":$offset";
     }      }

Removed from v.1.168  
changed lines
  Added in v.1.171


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>