File:  [LON-CAPA] / loncom / html / adm / help / tex / Authoring_ExternalResponse.tex
Revision 1.2: download - view: text, annotated - select for diffs
Tue Feb 22 14:57:21 2005 UTC (19 years, 4 months ago) by vandui11
Branches: MAIN
CVS tags: version_2_5_X, version_2_5_2, version_2_5_1, version_2_5_0, version_2_4_X, version_2_4_99_0, version_2_4_2, version_2_4_1, version_2_4_0, version_2_3_X, version_2_3_99_0, version_2_3_2, version_2_3_1, version_2_3_0, version_2_2_X, version_2_2_99_1, version_2_2_99_0, version_2_2_2, version_2_2_1, version_2_2_0, version_2_1_X, version_2_1_99_3, version_2_1_99_2, version_2_1_99_1, version_2_1_99_0, version_2_1_3, version_2_1_2, version_2_1_1, version_2_1_0, version_2_0_X, version_2_0_99_1, version_2_0_2, version_2_0_1, version_2_0_0, version_1_99_3, version_1_99_2, version_1_99_1_tmcc, version_1_99_1, version_1_99_0_tmcc, version_1_99_0, HEAD
bullets formatted for consistency

\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}: url to submit the answer form to. It does
not need to be a LON-CAPA machine.
\item \textbf{answer}\index{answer}:  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}: 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>