Code example – Extron Electronics IPL T PCS4i User Manual

Page 42

Advertising
background image

The query string in the figure below turns off DHCP on the IP Link device.

<a href="index.html

?

Starts

query string.

URL with a Query String Using an SIS Command

*Enter with no spaces.

Tells web server

that SIS

command follows.

HTML Code

for a Link

cmd=

SIS Command

To Be Processed

by the IP Link

W

1

*1PC

|

Closes

link.

</a>

HTML Code

for a Link

">

Linked Text

Receptacle on

SIS Command

Figure 25.

Example of a Query String Command

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 26.

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.

<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 PCS4</b>

<br>
IPLink Product Description: <b>

Four Switched 110v AC Receptacles with

Current Threshold Sensing</b>
<br>
IPLink Product Part Number: <b>

60-544-07</b>

</body>
</html>

Figure 27.

Resulting HTML Source Code Served by an IP Link web Server

IPL T PCS4 • HTML Configuration and Control

36

Advertising
This manual is related to the following products: