User guide

eWON 500-2001-4001-4002 User Guide - User defined Web site
eWON 500®2001®4001®4002® Version 4_3_0 - User Guide - 10/5/05 - ©ACT'L sa - Page 182
10.2.3 VarSSI HTML Tag
See:
“Web context variable directly inserted with SSI” on page 184"
10.2.4 ExeSSI HTML Tag
See:
“Building page content by using bASP” on page 182"
10.3 bASP Syntax
The bASP allows to insert BASIC blocks in the WEB page in order to build the page on the fly while the page is transmitted to the client's web
browser.
The big advantages of this technique are:
• It can generate pure HTML, compatible with any WEB client (not even javascript enabled).
• The BASIC code is inserted directly in the WEB page, so it can be created at the same time the rest of the page layout is designed.
• It is very flexible.
10.3.1 Building page content by using bASP
The page created will contain special Tags with BASIC block embedded.
Example:
In this example the page actually generated by the eWON would be:
If a(1)=10, a(2)=20, a(3)=30.
The following remarks can be made about this example:
• The syntax for the bASP inclusion is:
<%#ExeSSI,Basic_block%>
(Basic block can span multiple lines)
<html>
<head>
<title>SSI Demo</title>
</head>
<body>
<p>
Time:<%#ExeSSI,PRINT #0,TIME$%><BR>
Array of data:<BR>
<%#ExeSSI,
for i%=1 to 3
print #0,"TData(";i%;") ";a(i%)
next i%
%>
</p>
</body>
</html>
<html>
<head>
<title>SSI Demo</title>
</head>
<body>
<p>
Time:05/06/2002 14:09:57<BR><BR>
Array of data:<BR>
TData(1) 10<BR>
TData(2) 20<BR>
TData(3) 30<BR>
</p>
</body>
</html>