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

URL with a Query String Using an SIS Command

 

 

 

SIS Command

 

 

 

<a href="index.html

?

cmd=

W1*1PC

">

Receptacle on

</a>

HTML Code

Starts

Tells web server

SIS Command

HTML Code

Linked Text

Closes

query string.

for a Link

 

that SIS

To Be Processed

for a Link

 

link.

 

 

command follows.

by the IP Link

 

 

 

*Enter with no spaces.

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.

<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><!--#echovar="1I"--></b>

 

<br>

SSI

IPLink Product Description: <b><!--#echovar="2I"--></b>

commands

<br>

 

IPLink Product Part Number: <b><!--#echovar="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

Page 42
Image 42
Extron electronic IPL T PCS4i manual Code example, Example of a Query String Command