File:  [LON-CAPA] / loncom / html / adm / help / tex / Authoring_ExternalResponse.tex
Revision 1.1: download - view: text, annotated - select for diffs
Tue Jun 10 19:29:26 2003 UTC (21 years, 2 months ago) by bowersj2
Branches: MAIN
CVS tags: version_1_3_X, version_1_3_3, version_1_3_2, version_1_3_1, version_1_3_0, version_1_2_X, version_1_2_99_1, version_1_2_99_0, version_1_2_1, version_1_2_0, version_1_1_X, version_1_1_99_5, version_1_1_99_4, version_1_1_99_3, version_1_1_99_2, version_1_1_99_1, version_1_1_99_0, version_1_1_3, version_1_1_2, version_1_1_1, version_1_1_0, version_1_0_99_3, version_1_0_99_2, version_1_0_99_1, version_1_0_99, version_1_0_3, version_1_0_2, version_1_0_1, version_1_0_0, version_0_99_5, version_0_99_4, version_0_99_3, version_0_99_2, HEAD
homework5.html chunked up with authoring information

    1: \label{Authoring_ExternalResponse}
    2: 
    3: 
    4: \textbf{externalresponse} is an advanced type of response tag that
    5: implements the ability to have an external program grade a response.
    6: It expects either a \textbf{textline} or \textbf{textfield} inside
    7: the tag. Possible attributes are:
    8: 
    9: \begin{itemize}
   10: \item \textbf{url}\index{url}: the url to submit the answer form to. Does
   11: not need to be a LON-CAPA machine.
   12: \item \textbf{answer}\index{answer}: a string or scalar variable that can
   13: encode something that should encode the correct answer. In some cases
   14: this may be nothing. 
   15: \item \textbf{form}\index{form}: a hash variable name that will be submitted
   16: to the remote site as a HTTP form.
   17: \end{itemize}
   18: The response of the remote server needs to be in XML as follows: 
   19: 
   20: \begin{itemize}
   21: \item \textbf{loncapagrade}\index{loncapagrade}: takes no attributes, but
   22: must surround the response.
   23: \item \textbf{awardetail}\index{awardetail}: required. The delimited text
   24: inside must be one of the detailed results that appears in the data
   25: storage documentation. CVS:loncapa/doc/homework/datastorage, look
   26: for \textbf{resource.partid.responseid.awarddetail}.
   27: \item \textbf{message}\index{message}: optional message to have shown to
   28: the student
   29: \end{itemize}
   30: Example: \begin{verbatim} <loncapagrade>
   31:     <awardetail>INCORRECT</awardetail>
   32:     <message>
   33: A message to be shown to the students
   34:     </message>
   35: </loncapagrade>
   36: \end{verbatim}

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