Rev 4656 | Rev 6097 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
| Rev | Author | Line No. | Line |
|---|---|---|---|
| 5767 | bpr | 1 | <br/> |
| 13 | reyssat | 2 | Create an html form pointing to a block: up to 3 arguments. <ul> |
| 3 | <li>Argument 1: the name of the cited block. This can be a block of another |
||
| 4656 | bpr | 4 | document, in this case this argument must be under the form <tt class="wims_fname">ser/bl</tt>, |
| 13 | reyssat | 5 | where <tt>ser</tt> is the serial number of the other document, and <tt>bl</tt> |
| 5767 | bpr | 6 | the name of the block.<br/> |
| 13 | reyssat | 7 | If this argument is empty or equal to '.', it means the current block. |
| 8 | <li>Argument 2 (optional): the position to go (anchor) in the cited block. |
||
| 9 | <li>Argument 3: content of the form, in its usual html format. |
||
| 10 | </ul> |
||
| 11 | <p> |
||
| 12 | The content of the form may contain up to 20 parameters under the names of <tt>parm1, parm2, ..., parm20</tt>. All other kinds of input parameters should be avoided. |
||
| 3614 | bpr | 13 | <p><a name="expform"> |
| 13 | reyssat | 14 | For example, the following form allows the input of an arbitrary numerical expression. This expression is then evaluated in the document. |
| 15 | |||
| 16 | \form{.}{expform}{ |
||
| 17 | Enter your expression: |
||
| 5767 | bpr | 18 | <input size="30" name="parm1" value="\parm1"/> |
| 19 | <input type="submit" value="OK"/> |
||
| 13 | reyssat | 20 | } |
| 21 | \def{real value=\parm1}The expression is evaluated to: \value. |
||
| 22 | |||
| 23 | The source of the above: |
||
| 24 | |||
| 25 | <pre> |
||
| 26 | \\form{.}{expform}{ |
||
| 27 | Enter your expression: |
||
| 3614 | bpr | 28 | <input size="30" name="parm1" value="\\parm1"> |
| 29 | <input type="hidden" value="OK"> |
||
| 13 | reyssat | 30 | } |
| 31 | \\def{real value=\\parm1}The expression is evaluated to: \\value. |
||
| 32 | </pre> |