Extron electronic IPL T PC1 manual Code example, Web Page HTML Source Code Document Showing SSIs

Models: IPL T PC1 IPL T PC1i

1 78
Download 78 pages 34.87 Kb
Page 47
Image 47
Code example

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

IPL T PC1 • HTML Configuration and Control 41

Page 47
Image 47
Extron electronic IPL T PC1i manual Code example, Web Page HTML Source Code Document Showing SSIs