Subversion Repositories wimsdev

Rev

Rev 5767 | 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
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/>
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>
6097 bpr 12
The content of the form may contain up to 20 parameters under the names of <span class="tt wims_code_words">parm1, parm2, ..., parm20</span>. 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:
6097 bpr 28
&lt;input size="30" name="parm1" value="\\parm1"/>
29
&lt;input type="hidden" value="OK"/>
13 reyssat 30
}
31
\\def{real value=\\parm1}The expression is evaluated to: \\value.
32
</pre>