--- doc/homework/homework5.html 2001/11/09 13:43:03 1.11 +++ doc/homework/homework5.html 2005/04/07 06:56:20 1.23 @@ -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: + +

    + 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>
    +	    
    + +
  • Foil Structure Tags @@ -192,6 +249,31 @@ name which should be set to the value of which <hintpart> will be shown.
  • +
  • + <stringhint> has all the arguments that + <stringresponse>, does and the required attribute + name which should be set to the value of which + <hintpart> will be shown. +
  • +
  • + <formulahint> has all the arguments that + <formularesponse>, does and the required attribute + name which should be set to the value of which + <hintpart> will be shown. +
  • +
  • + <optionhint> required attribute name + which should be set to the value of which <hintpart> + will be shown. +
  • +
  • + <radiobuttonhint> has the required attribute + name which should be set to the value of which + <hintpart> will be shown, and answer which + should be a two element list, frist the type (foil or + concept) and then either the foil's name or the concept's + string +
  • @@ -203,9 +285,9 @@

    - + +

    Form internals

    +

    Form elements used for homework editing/response

    +

    the form is named lonhomework

    +

    Viewing a problem (either CSTR or RES space)

    + +

    Editing a problem (Edit mode)

    +

    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

    +
    Guy Albertelli
    -Last modified: Fri Nov 9 08:39:47 EST 2001 +Last modified: Wed Nov 13 17:33:43 EST 2002