Re: Help with setTimeout or setInterval
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: Help with setTimeout or setInterval

From: <pegasusflightresources@gmail.com>
Date: Fri Mar 31 2006 - 06:38:48 CEST

The variable amount of attempts could be made by creating a while loop
where:
   while(x<=1)
   setTimeout(function; timelimit)
   x=x+1
Now, in order to have a blocking timeout, that would require basically
the opposite of setTimeout, so you might as well have an extremely
large if loop surrounding pretty much everything in order to have the
interval of 500 milliseconds blocking to be maintained. You might do
something like this:
   if(checkLoadStatus!=1)
   some_time = 500
   setTimeout(function that contains this phrase; some_time)
   some_time=some_time+500
I hope that this works, as I am not a complete expert on JavaScript,
but it is my best attempt.

____________________________________

I remain your most humble and ob't sv't.

Patrick Reilly
1st Coy
Colonel Seth Warner's Regiment
Received on Mon May 1 04:33:35 2006