--- doc/homework/homework5.html 2002/05/03 18:34:20 1.14
+++ doc/homework/homework5.html 2002/07/17 18:08:38 1.19
@@ -57,6 +57,11 @@
+ <parameter> exactly the same as
+ <responseparam> currently, but should not appear
+ inside of a <*response>
+
+
<numericalresponse> implements a numerical
answer, it needs an internal <textline> for
the response to go in. It checks all styles of numerical
@@ -83,7 +88,7 @@
<essayresponse> implements a ungraded large
- text response, it need an internal <textarea>
+ text response, it need an internal <textfield>
for the response to go in.
@@ -142,7 +147,59 @@
the field when interfacing with humans
+
+
+ <externalresponse> implements the ability to have
+ an external program grade a response, expects either a
+ <textline> or <textfield> inside the tag.
+
+ Arguments:
+
+ -
+ url the url to submit the answer and form to,
+ does not need to be a LON-CAPA machine.
+
+ -
+ answer a string or scalar variable that can
+ encode something that should encode the correct
+ answer, in some cases this may be nothing.
+
+ -
+ form a hash variable name that will be
+ submitted to the remote site as a HTTP form.
+
+
+
+ The response of the remote server needs to be in XML as follows.
+
+
+<loncapagrade>
+ <awardetail>
+CORRECT
+ </awardetail>
+ <message>
+A message to be shown to the students
+ </message>
+</loncapagrade>
+
+
+ -
+ <loncapagrade> no arguments but must
+ surround the response.
+
+ -
+ <awardetail> required inner tag, the
+ response inside must be one of the detailed responses
+ that appears in the data storage documentation
+ (CVS:loncapa/doce/homework/datastorage)
+
+ -
+ <message> optional message to have shown
+ to the student
+
+
+
Foil Structure Tags
@@ -203,9 +260,9 @@
-
- <textarea> creates a Large text input box, If
+ <textfield> creates a Large text input box, If
data appears between the start and end tags, the data will
- appear i the textarea if the student has not yet made a
+ appear in the textfield if the student has not yet made a
submission. Additionally it takes two arguments rows
and cols which control the height and width of the
area respectively. It defaults to 10 and 80.
@@ -224,6 +281,11 @@
-
Scripting
-
- These tags allow the document to behave programatically
-
-
@@ -373,7 +549,7 @@
- open_date(), due_date(), answer_date()
- sub_string()
- array_moments(array)
- - format(x,y)
+ - format(x,y),prettyprint(x,y)
- map(...)
- caparesponse_check
- caparesponse_check_list
@@ -495,11 +671,24 @@
/DIS($x,"nn") |
&format($x,"nn") |
- Display or format $x as nn where nn is nF or nE and n is an integer. |
+ Display or format $x as nn where nn is nF or nE and n is an integer. Also supports the first character being a $, it thjen will format the result with a call to &dollarformat() described below. |
The difference is obvious. |
+ Not in CAPA |
+ &prettyprint($x,"nn") |
+ Display or format $x as nn where nn is nF or nE and n is an integer. Also supports the first character being a $, it then will format the result with a a call to &dollarformat() described below. In E mode it will attempt to generate a pretty x10^3 rather than a E3 following the number |
+ |
+
+
+
+ Not in CAPA |
+ &dollarformat($x |
+ Reformats $x to have a $ (or \$ if in tex mode) and to have , grouping thousands. |
+ |
+
+
roundto(x,n) |
&roundto($x,$n) |
Rounds a real number to n decimal points. $x and
@@ -970,7 +1159,7 @@
Guy Albertelli
-Last modified: Fri May 3 14:24:52 EDT 2002
+Last modified: Fri Jul 12 21:28:44 EDT 2002
|