Code examples – Extron Electronics IPL T SFI244 User Manual
Page 51

Code Examples
This section shows practical uses for both SSIs and query strings.
NOTE: Before attempting to develop new Web pages, the user should have a good,
working knowledge of JavaScript
™
, HTML, and Server Side Includes.
Example 1
In figure 40, 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 Example #1
The following lines demonstrate how to read status from the IPLink Product:
IPLink Product Name:
IPLink Product Description:
IPLink Product Part Number:
This example requires an Extron Crosspoint 84HVA connected to IPL T SF244
serial
port #1.
Part Number:
Connection Info:
Firmware Version:
"host" SSI
commands
"remote" SSI
commands
Figure 40.
HTML Source Code Document Showing Server Side Includes
The host SSI commands in figure 40 request the product name, product description and
product part number of an IP Link device. The remote SSI commands request the part
number, connection information and firmware version of an attached serial device.
HTML Example #1
The following lines demonstrate how to read status from the IPLink Product:
IPLink Product Name: IPL T SFI244
IPLink Product Description: Two Bi-Directional Serial Ports [RS232], Four
Flex I/O, Four IR Ports
IPLink Product Part Number: 60-544-06
This example requires an Extron Crosspoint 84HVA connected to IPL T SFI244
serial port #1.
Part Number: N60-337-01%0D%0A
Connection Info: V08X04 A08X04 Exe0%0D%0A
Firmware Version: Ver2.02%0D%0A
Figure 41.
Resulting HTML Source Code Served by an IP Link Web Server
Notice, in figure 41, that the commands executed by the IP Link box in response to SSI
references have been replied to and are implemented when the Web page is served to the
browser as seen in figure 42.
IPL T SFI244 • Communication and Control
45