I found a specialized html/javascript code for refreshing browser/page
here:
http://www.myrefresher.com/samples/javascript_html_refresh_code.html.zip
However I don't know if it's any better than the codebit I've got
already - or how to implement it. It seems that you'll have to have it
written directly into the htmlbody:
Scriptsnippet:
<script language="JavaScript">
<!--
var surl = unescape(window.location.pathname);
function doLoad()
{
// the timeout value should be the same as in the
"refresh" meta-tag (6 seconds)
setTimeout( "refresh()", 6000 );
}
function refresh()
{
// This version of the refresh function will cause a
new
// entry in the visitor's history. It is provided
for
// those browsers that only support JavaScript 1.0.
//
window.location.href = surl;
}
//-->
</script>
<script language="JavaScript1.1">
<!--
function refresh()
{
// This version does NOT cause an entry in the
browser's
// page view history. Most browsers will always
retrieve
// the document from the web-server whether it is
already
// in the browsers page-cache or not.
//
window.location.replace( surl );
}
//-->
</script>
<script language="JavaScript1.2">
<!--
function refresh()
{
// This version of the refresh function will be
invoked
// for browsers that support JavaScript version 1.2
//
// The argument to the location.reload function
determines
// if the browser should retrieve the document from
the
// web-server. In our example all we need to do is
cause
// the JavaScript block in the document body to be
// re-evaluated. If we needed to pull the document
from
// the web-server again (such as where the document
contents
// change dynamically) we would pass the argument as
'true'.
//
window.location.reload( false );
}
//-->
</script>
</head>
<!--
Use the "onload" event to start the refresh process.
-->
<body onload="doLoad()">
<script language="JavaScript">
<!--
// we put this here so we can see something change
document.write('<b>' + (new Date).toLocaleString() + '</
b>');
//-->
</script>
regards Måns Mårtensson
On 20 Jun., 20:26, Måns <
humam...@gmail.com> wrote:
> Maybe this the way to go, for the embedded systems:
http://windowssecrets.com/support-alert/2008/06/19/14-Free-auto-refre...