NetTalk Central

Author Topic: Timers & updating html  (Read 3967 times)

Big Ian

  • Newbie
  • *
  • Posts: 31
  • I wonder what happens if I press this button
    • MSN Messenger - ian.holdsworth@gmail.com
    • View Profile
    • Email
Timers & updating html
« 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?
Ian Holdsworth
Ram Ltd

Mike Grigsby

  • Sr. Member
  • ****
  • Posts: 380
    • Yahoo Instant Messenger - onthedotsoftware
    • View Profile
    • MyHomeAssets! Software (among others)
Re: Timers & updating html
« Reply #1 on: March 13, 2008, 10:05:20 PM »
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>
Mike Grigsby
Credify Systems
Central Oregon, USA

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Timers & updating html
« Reply #2 on: March 14, 2008, 03:03:31 AM »
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