NetTalk Central
NetTalk Web Server => Web Server - Ask For Help => Topic started by: Big Ian on March 13, 2008, 08:19:40 AM
-
Hi All
How do I get a websource procedure to update html on a timer. I've found the bit in the wiki that tells you how to update an image however I have a need to the html.
Any Ideas?
-
Do you mean something like a simple page refresh? You could put some script in the header, under the Title:
<script type="text/javascript">
var timer = setInterval("autoRefresh()", 1000 * 60 * 3);
function autoRefresh(){self.location.reload(true);}
</script>
-
Hi Ian,
Whatever is in the NetWebSource is sent to the server if the timer on the NetWebSource is on. Image, HTML, whatever. (Indeed an Image _is_ HTML).
However remember it MUST be XHTML, not "plain" HTML. see here;
http://www.nettalkcentral.com/index.php?option=com_smf&Itemid=36&topic=119.0
Cheers
Bruce