Code example
The following figure shows a practical use for both SSIs and query strings. In this example,
the HTML source code contains three SSI commands.
SSI
commands
<html>
<head><title>Example 1</title></head>
<h2 b>HTML Example #1</h2 b>
<body>
The following lines demonstrate how to read status from the IPLink Product:
IPLink Product Name: <b>
<!--#echo var="1I"--></b>
<br>
IPLink Product Description: <b>
<!--#echo var="2I"--></b>
<br>
IPLink Product Part Number: <b>
<!--#echo var="N"--></b>
</body>
</html>
Figure 34.
Web Page HTML Source Code Document Showing SSIs
The SSI commands in the figure above request the product name, product description, and
product part number of an IP Link device.
The figure below shows the HTML code that results from the SSIs shown in the above
example.
<html>
<head><title>Example 1</title></head>
<h2 b>HTML Example #1</h2 b>
<body>
The following lines demonstrate how to read status from the IPLink Product:
IPLink Product Name: <b>
IPL T PC1</b>
<br>
IPLink Product Description: <b>
One Switched 110v AC Receptacle with
Serial and IR communication</b>
<br>
IPLink Product Part Number: <b>
60-544-10</b>
</body>
</html>
Figure 35.
Resulting HTML Source Code Served by an IP Link web Server
Notice, in the figure below, that the commands executed by the PC1 in response to SSI
references have been replied to, and were implemented when the web page was served to
the browser.
Figure 36.
Browser View of Previous HTML Source Code
34
35
36
IPL T PC1 • HTML Configuration and Control
41
Содержание IP Link IPL T PC1
Страница 1: ...User Guide IPL T PC1 IPL T PC1i IP Link IP Link Power Control Interfaces 68 738 10 Rev C 07 19 ...
Страница 6: ......
Страница 8: ...IPL T PC1 Contents viii ...