Re: [newbie] setTimeout, what's wrong?
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.javascript archive

Re: [newbie] setTimeout, what's wrong?

From: .:|:. <@.>
Date: Mon Nov 14 2005 - 10:00:28 CET

Tim Williams wrote:

> Try this instead of what you have:
>
> <script type="text/javascript">
> var wait;
> function reload()
> {
> var picSrc = "http://213.171.96.200/cgi-bin/jpg/image.cgi?x=";
> document.getElementById("webcam").src=picSrc + escape(new Date());
> wait=setTimeout("reload()", 2000);
> }
> </script>

Thanks Tim! This works!
http://tinyurl.com/9wbw5

Now, I'd just like to understand why!
Does the .cgi require a parameter in order to work correctly
with browsers different from IE?
:-)

Thanks a lot!
Received on Mon Nov 21 03:28:35 2005