--- doc/homework/homework5.html 2001/07/13 16:15:01 1.8 +++ doc/homework/homework5.html 2002/11/13 23:28:30 1.22 @@ -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 +
++ We also support these functions from Math::Cephes +
+ bdtr: Binomial distribution + bdtrc: Complemented binomial distribution + bdtri: Inverse binomial distribution + btdtr: Beta distribution + chdtr: Chi-square distribution + chdtrc: Complemented Chi-square distribution + chdtri: Inverse of complemented Chi-square distribution + fdtr: F distribution + fdtrc: Complemented F distribution + fdtri: Inverse of complemented F distribution + gdtr: Gamma distribution function + gdtrc: Complemented gamma distribution function + nbdtr: Negative binomial distribution + nbdtrc: Complemented negative binomial distribution + nbdtri: Functional inverse of negative binomial distribution + ndtr: Normal distribution function + ndtri: Inverse of Normal distribution function + pdtr: Poisson distribution + pdtrc: Complemented poisson distribution + pdtri: Inverse Poisson distribution + stdtr: Student's t distribution + stdtri: Functional inverse of Student's t distribution ++Plase see Math::Cephes for more information + +
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
+