mimetype.ini file (as described above) resides in the webuidevkit/streamapp/
directory.
4.3 Dynamic Web Pages
Web pages can include dynamic values. Dynamic Web Pages are built in HTML or
XML or in an other text file format that exclude the binary character 0x00, i.e. the
dynamic page can be an HTML file. It's possible to use scripts or everything else
allowed in the given document's file format.
Initial Dynamic Mark
In order to indicate that Web page is dynamic, it has to contain the special initial
dynamic mark &L(0,"*"); in the first 500 Bytes and before any other dynamic value
is used. The initial mark can also have decimal number as its optional third
parameter. Example of such initial mark is &L(0,“*“,1);.
The third parameter is parsed bitwise and has the following meaning:
• bit 0 is reserved for backwards compatibility and can be set to any value
• bits 1-3 select the password level (as a 3-bit number), which protects this page; 0
for no password protection
• bits 4-6 are reserved for future use and should be set to 0
• bit 7 is reserved for backwards compatibility and can be set to any value
Syntax of Dynamic Marks
Dynamic marks can be used to put dynamic values in Web pages. All dynamic
marks have the following syntax: &L<name>(<id>,<format>[,par]);
A dynamic mark always starts with &L and it is always case sensitive.
• <name> selects a group of dynamic values. Defined is the “Setup” group for all
configuration parameters and the “State” group for actual parameter states.
Remaining parameters are included in parentheses, with the right parenthesis
followed by a semicolon.
• <id> determines the desired function.
• <format> is a C-style format string (refer to the ANSI documentation).
• <par> are optional additional parameters. If additional parameters are needed, it
is mentioned in the function lists below.
Note: The string “);” is not allowed inside a dynamic mark.
To have this construct inside the format string, use “)\;“(in an unknown escape
sequence, only the '\' will be removed).
To have a “%” sign (percent sign) inside the format string, use “%%” (two signs
without space).
The whole mark is replaced by the dynamic value formatted with the <format>
string. Only one value is allowed per dynamic mark. The length of the dynamic mark
mustn't exceed 500 characters. The resulting string from the dynamic mark must
not exceed 500 characters.
A dynamic mark can be contained in an another dynamic mark. Only one recursion
step is allowed and correct “escaping” has to be applied. Example:
&LSetup(3,"%s",419,B,!0,"<meta http-equiv=refresh
content=\"&LSetup(1,\"%u\",419)\;; url=info.html\">");
Note the special “\” before the semicolon of the dynamic mark inside. This is
because the escape sequence is interpreted as only a semicolon and is needed in
order to include the prohibited sequence “);” inside a dynamic mark.
BARIX AG | 26/63
Commenti su questo manuale