version 1.1, 2003/06/10 19:29:26
|
version 1.2, 2005/02/22 14:57:21
|
Line 7 It expects either a \textbf{textline} or
|
Line 7 It expects either a \textbf{textline} or
|
the tag. Possible attributes are: |
the tag. Possible attributes are: |
|
|
\begin{itemize} |
\begin{itemize} |
\item \textbf{url}\index{url}: the url to submit the answer form to. Does |
\item \textbf{url}\index{url}: url to submit the answer form to. It does |
not need to be a LON-CAPA machine. |
not need to be a LON-CAPA machine. |
\item \textbf{answer}\index{answer}: a string or scalar variable that can |
\item \textbf{answer}\index{answer}: string or scalar variable that can |
encode something that should encode the correct answer. In some cases |
encode something that should encode the correct answer. In some cases, |
this may be nothing. |
this may be nothing. |
\item \textbf{form}\index{form}: a hash variable name that will be submitted |
\item \textbf{form}\index{form}: hash variable name that will be submitted |
to the remote site as a HTTP form. |
to the remote site as a HTTP form. |
\end{itemize} |
\end{itemize} |
The response of the remote server needs to be in XML as follows: |
The response of the remote server needs to be in XML as follows: |
Line 25 inside must be one of the detailed resul
|
Line 25 inside must be one of the detailed resul
|
storage documentation. CVS:loncapa/doc/homework/datastorage, look |
storage documentation. CVS:loncapa/doc/homework/datastorage, look |
for \textbf{resource.partid.responseid.awarddetail}. |
for \textbf{resource.partid.responseid.awarddetail}. |
\item \textbf{message}\index{message}: optional message to have shown to |
\item \textbf{message}\index{message}: optional message to have shown to |
the student |
the student. |
\end{itemize} |
\end{itemize} |
Example: \begin{verbatim} <loncapagrade> |
Example: \begin{verbatim} <loncapagrade> |
<awardetail>INCORRECT</awardetail> |
<awardetail>INCORRECT</awardetail> |