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, 1 month 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

\label{Authoring_ExternalResponse}


\textbf{externalresponse} is an advanced type of response tag that
implements the ability to have an external program grade a response.
It expects either a \textbf{textline} or \textbf{textfield} inside
the tag. Possible attributes are:

\begin{itemize}
\item \textbf{url}\index{url}: the url to submit the answer form to. Does
not need to be a LON-CAPA machine.
\item \textbf{answer}\index{answer}: a string or scalar variable that can
encode something that should encode the correct answer. In some cases
this may be nothing. 
\item \textbf{form}\index{form}: a hash variable name that will be submitted
to the remote site as a HTTP form.
\end{itemize}
The response of the remote server needs to be in XML as follows: 

\begin{itemize}
\item \textbf{loncapagrade}\index{loncapagrade}: takes no attributes, but
must surround the response.
\item \textbf{awardetail}\index{awardetail}: required. The delimited text
inside must be one of the detailed results that appears in the data
storage documentation. CVS:loncapa/doc/homework/datastorage, look
for \textbf{resource.partid.responseid.awarddetail}.
\item \textbf{message}\index{message}: optional message to have shown to
the student
\end{itemize}
Example: \begin{verbatim} <loncapagrade>
    <awardetail>INCORRECT</awardetail>
    <message>
A message to be shown to the students
    </message>
</loncapagrade>
\end{verbatim}

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