Panasonic FP Web-Server2 Hardware And Configuration Manual page 114

Table of Contents

Advertisement

Example 1: Automatic refresh of an html page after sending PLC data
Comments:
Example 2: Automatic refresh of an HTML page after sending PLC data, but without closing
the OK window automatically
FP Web-Server V2.810 EN
Enter the following lines in the file "s_m_done.htm":
<html><head><title>DONE</title></head><body>
<script language="JavaScript">
opener.location.reload(true);
window.close();
</script></body></html>
This script also automatically closes the default window OK or DONE
Find a copy of this file in Example - FTP and
Datalogging\FPWEB_FTP\http in your installation directory
Using this file you can execute Java Script applications after sending
PLC data
The file "s_m_done.htm" must not contain PLC data fields, e.g.
{DT100_6_d}
Restart the FP Web-Server unit after you have modified the file
"s_m_done.htm". (When modifying other HTM files, the unit does not
have to be restarted.)
Using this script you have to click [OK] to close the OK window
<html><head><title>DONE</title></head><body>
<p align="center"><font face="Arial"><strong><big>FP
Web-Server</big><br>
</strong><small>Data values transfered to PLC.</small></font></p>
<form><div align="center"><center><p>
<input type="button" value="OK" + " onClick="self.close()"></p>
</center></div></form>
<script language="JavaScript">
opener.location.reload(true);
</script></body></html>
HTTP server functions/web pages
113

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fp web-server

Table of Contents