Code examples
This section shows practical uses for both SSIs and query strings.
Example 1
In the figure below, both host SSI and remote SSI commands are used within the same Web page. You will notice six SSIs: three host commands and three remote 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: | |
<p> |
|
IPLink Product Name: | "host" SSI |
<br> | commands |
IPLink Product Description: |
|
<br> |
|
IPLink Product Part Number: |
|
<br><hr> |
|
<p> |
|
This example requires an Extron Crosspoint 84HVA connected to IPL T S2 | |
serial port #1. |
|
<p> | "remote" SSI |
Part Number: | commands |
<br> |
|
Connection Info: |
|
<br> |
|
Firmware Version: |
|
</body> |
|
</html> |
|
Figure 4-5 — Web page HTML source code document showing Server Side Includes
The host SSI commands in the figure above request the product name, product description, and product part number of an IPL T S interface. The remote SSI commands request the part number, connection information and firmware version of an attached serial device.
<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: <p>
IPLink Product Name: <b>IPL T S2</b> <br>
IPLink Product Description: <b>Two
<br>
IPLink Product Part Number:
<p>
This example requires an Extron Crosspoint 84HVA connected to IPL T S2 serial port #1.
<p>
Part Number:
Connection Info: <b>V08X04 A08X04 Exe0%0D%0A</b> <br>
Firmware Version: <b>Ver2.02%0D%0A</b> </body>
</html>
Figure 4-6a — Resulting HTML source code served by an IP Link Web server
In figure