Kbase 22074: Webspeed 3.x: Auto-Refresh Example Insures Current Data
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  11/06/2002 |
|
SUMMARY:
One of the great benefits of WebSpeed is the ability to report on up to the second data. However if a user leaves a screen open for an extended period of time, this data could become outdated. This Solution provides an example process to auto-refresh after a predetermined period of time.
EXPLANATION:
Adding the following tag;
<META HTTP-EQUIV="Refresh" CONTENT="n; URL=x.html">
in the HEAD(<HEAD> </HEAD>) tag of your HTML file will instruct your application to refresh to a specific page.
CONTENT="n; is the time in seconds till refresh
URL=x.html" is the page it should load after the allotted time.
SOLUTION:
Save and compile the following code as refreshment.html.
====================================================================
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<HTML>
<HEAD>
<META NAME="AUTHOR" CONTENT="Alex Pearlstein">
<META HTTP-EQUIV="Refresh" CONTENT="10; URL=refreshment.html">
<TITLE>WebSpeed Example of Auto-Refresh</TITLE>
</HEAD>
<BODY>
<Center>
<P><P><P><P>
<SCRIPT LANGUAGE="SpeedScript">
{&out} 'The current time is ' + String(time,"HH:MM:SS").
</SCRIPT>
</BODY>
</HTML>
====================================================================