--- doc/homework/homework5.html 2001/10/01 20:13:38 1.10 +++ doc/homework/homework5.html 2002/05/03 18:34:20 1.14 @@ -236,6 +236,12 @@ <window> the text in between is put in a popup javascript window +
  • + <m> the inside text is LaTeX, and is + converted to HTML (or MathML) on the fly, if the argument + eval is set to "on" the intervening text will have + a perl var expansion done to it before being converted. +
  • @@ -288,7 +294,9 @@
  • <randomlist> the enclosed tags are parsed in - a stable random order + a stable random order, optional argument show + restricts the number of tags indie that are actually + parsed the no more than show.
  • <solved> everything inside the tag is @@ -557,7 +565,7 @@ - map(seed;a,b,c,d;w,x,y,z) + /MAP(seed;w,x,y,z;a,b,c,d) Option 1 - &map($seed,[\$w,\$x,\$y,\$z],[$a,$b,$c,$d]) or
    Option 2 - &map($seed,\@mappedArray,[$a,$b,$c,$d])
    Option 3 - @mappedArray = &map($seed,[$a,$b,$c,$d])
    @@ -594,10 +602,14 @@ $w, $x, $y, and $z are variables The rmap functions does the reverse action of map if the same seed is used in calling map and rmap. - In CAPA, the arguments are divided into three groups separated - by a semicolon ;. In LON-CAPA, the separation is done by using [] brackets or - using an array @a. Note the backslash (\) before the arguments in the - second and third groups. + In CAPA, the arguments are divided into + three groups separated by a semicolon ;. In LON-CAPA, the + separation is done by using [] brackets (with create an + unamed vector reference) or using an array @a. Note the + backslash (\) before the arguments in the second and + third groups (Which cause Perl to send to variable + locations rather than the variable values, similar to a C + pointer). @@ -873,7 +885,7 @@
  • $external::part - set to the id of the current problem - <part>; zero if there are now <part> + <part>; zero if there are no <part>
  • $external::gradestatus - set to the value of the current @@ -881,7 +893,7 @@
  • $external::datestatus - set to the current status of the clock - either CLOSED, CAN_ANSWER, CANNOT_ANSWER, or SHOW_ANSWER + either CLOSED, CAN_ANSWER, CANNOT_ANSWER, SHOW_ANSWER, or UNCHECKEDOUT
  • $external::randomseed - set to the number that was used to @@ -891,12 +903,74 @@
  • $rad2deg - converts radians to degrees
  • $deg2rad - converts degrees to radians
  • - + +

    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: Mon Oct 1 16:12:05 EDT 2001 +Last modified: Fri May 3 14:24:52 EDT 2002