File_1.htm, File_2.htm, Index.htm – ProSoft Technology 5201-104S-103M User Manual
Page 28

Web Server
Web Page Construction
Page 28 of 35
ProSoft Technology, Inc.
September 28, 2005
<meta http-equiv="refresh" content="5">
The http-equiv="refresh" attribute sets the page to auto-refresh. The page will be
requested at the rate (in seconds) set in the value of the content attribute. In the
example above, the page will be requested approximately every 5 seconds. If
you set the value for the page refresh too short, the page may not have enough
time to be displayed before it is requested.
You do not have to refresh the whole page and different parts of the display can
update at different rates. This feature is achieved by using the <IFRAME> tag,
inline frames. If you insert <IFRAME> tags in cells in a table, each cell in the
table can update at a specific rate. This is accomplished by placing the <meta
http-equiv="refresh" content="5"> command in the <HEAD> section of each file
referenced by each <IFRAME> tag. Example code (contained in 3 separate files)
to perform this task is given below:
5.9 File_1.htm
<html>
<head>
<meta http-equiv="refresh" content="2">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="IFRAME TEST" content="Microsoft FrontPage 3.0">
<title>Point 0 (2 Sec)</title>
</head>
<Body><--DATA 0,1,1,%d --></Body>
</html>
5.10 File_2.htm
<html>
<head>
<meta http-equiv="refresh" content="5">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="IFRAME TEST" content="Microsoft FrontPage 3.0">
<title>Point 1 (5 Sec)</title>
</head>
<Body><--DATA 1,1,1,%d --></Body>
</html>
5.11 Index.htm
…Normal header stuff
<Body>
<table border="0" width="100%">
<tr>
<td width="10%">
<IFRAME src=”File_1.htm” name=”iframe1” frameborder=1 scrolling=no
align=middle>
</IFRAME>
</td>
<td width=”10%”>