File naming conventions – ProSoft Technology 5201-104S-103M User Manual

Page 29

Advertising
background image

Web Page Construction

Web Server

ProSoft Technology, Inc.

Page 29 of 35

September 28, 2005

<IFRAME src=”File_2.htm” name=”iframe2” frameborder=1 scrolling=no

align=middle>

</IFRAME>

</td>

</tr>

</table>

</Body>

Scripts can also be used to refresh a Web page. Scripts are run on the client-side
(browser) and not the server-side of the connection. Therefore, interpretation and
execution of a script is browser dependent. An example of a VBScript to
automatically refresh individual sections of a page is shown below:

<SCRIPT LANGUAGE="VBSCRIPT">

Sub Window_OnLoad

mTimer = window.setInterval("ReloadMe", 2000)

End Sub

Sub ReloadMe

UpdateNow

End Sub

Sub UpdateNow

dframe0.location = "cell0.htm"

dframe1.location = "cell1.htm"

dframe2.location = "cell2.htm"

End Sub

</SCRIPT>

This script will automatically reload the three data files (cellx.htm) into the current
page every two-seconds. The files are inserted into <IFRAME ID=dframex ...>
areas defined on the form. The ID=dframex defines the variable in the script to
associate with each <IFRAME> element in the Web page. Each of the cellx.htm
files contain a dynamic variable to retrieve data out of the module's virtual
database that will be updated on the page every two seconds. Other scripting
techniques are available to update pages automatically, but are beyond level
intended for this introductory presentation.

5.12 File Naming Conventions

The http server in the ProSoft Technology, Inc. modules will only parse files with
a file extension of htm (i.e., MyFile.htm). These files will be read and all instances
of insertion data objects will be replaced with data from the module. The rest of
the file will be passed unaltered. All other files will be passed unprocessed from
the module to the browser. For example, all *.gif files are passed directly to the
browser and are displayed as graphic images.

You can retrieve any file in the C:\ directory or subdirectory under this directory
directly from your Web browser. Enter the IP address of the module followed by
the '/' character and the name of the file you want to retrieve. For example, to
retrieve an image file for checking from the module, enter
192.168.0.100/MYLogo.gif in the URL entry field of your browser. If the IP

Advertising