Rev 6097 | 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 |
||
| 6097 | bpr | 4 | document, in this case this argument must be under the form <span class="tt wims_fname">ser/bl</span>, |
| 5 | where <span class="tt wims_code_words">ser</span> is the serial number of the other document, and <span class="tt wims_code_words">bl</span> |
||
| 5767 | bpr | 6 | the name of the block.<br/> |
| 11795 | bpr | 7 | If this argument is empty or equal to '.', it means the current block. |
| 13 | reyssat | 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> |
||
| 11795 | bpr | 12 | The content of the form may contain up to 20 parameters under the names |
| 13 | of <span class="tt wims_code_words">parm1, parm2, ..., parm20</span>. |
||
| 14 | All other kinds of input parameters should be avoided. |
||
| 15 | </p><p><a name="expform"> |
||
| 13 | reyssat | 16 | For example, the following form allows the input of an arbitrary numerical expression. This expression is then evaluated in the document. |
| 11795 | bpr | 17 | </p> |
| 13 | reyssat | 18 | \form{.}{expform}{ |
| 19 | Enter your expression: |
||
| 5767 | bpr | 20 | <input size="30" name="parm1" value="\parm1"/> |
| 21 | <input type="submit" value="OK"/> |
||
| 13 | reyssat | 22 | } |
| 23 | \def{real value=\parm1}The expression is evaluated to: \value. |
||
| 24 | |||
| 25 | The source of the above: |
||
| 26 | <pre> |
||
| 27 | \\form{.}{expform}{ |
||
| 28 | Enter your expression: |
||
| 6097 | bpr | 29 | <input size="30" name="parm1" value="\\parm1"/> |
| 30 | <input type="hidden" value="OK"/> |
||
| 13 | reyssat | 31 | } |
| 32 | \\def{real value=\\parm1}The expression is evaluated to: \\value. |
||
| 11795 | bpr | 33 | </pre> |