--- doc/homework/homework5.html 2002/03/28 22:55:35 1.13 +++ doc/homework/homework5.html 2002/06/07 06:39:00 1.17 @@ -57,6 +57,11 @@
+ <externalresponse> implements the ability to have
+ an external program grade a response, expects either a
+ <textline> or <textfield> inside the tag.
+
+ 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> ++
+ <randomlabel bgimg="URL" width="12" height="45" texwidth="50"> + <labelgroup name="GroupOne" type="image"> + <location x="123" y="456" value="10" /> + <location x="321" y="654" value="20" /> + <location x="213" y="546" value="13" /> + <label description="TEXT-1">IMG-URL</label> + <label description="TEXT-2">IMG-URL</label> + <label description="TEXT-3">IMG-URL</label> + </labelgroup> + <labelgroup name="GroupTwo" type="text"> + <location x="12" y="45" /> + <location x="32" y="65" /> + <location x="21" y="54" /> + <label>TEXT-1</label> + <label>TEXT-2</label> + <label>TEXT-3</label> + </labelgroup> + </randomlabel> ++ Arguments: +
- These tags allow the document to behave programatically -
-+ These tags allow the document to behave programatically +
+Form elements used for homework editing/response
+the form is named lonhomework
+tagdepth referes to the current value of the xmlparsers tagdepth couter ($Apache::lonxml::currentdepth)
+Note: the file edit.pm has many helper functions for creating the standard elements for editing a tag and it's attributes, all of those functions follow these conventions
+