Topic awaiting preservation: Blocking script execution |
|
---|---|
Author | Thread |
Nervous Wreck (II) Inmate From: |
posted 08-15-2002 20:43
I am trying to implement the following behavior: |
Paranoid (IV) Inmate From: 127.0.0.1 |
posted 08-15-2002 23:39
var howManySeconds = 2; |
Nervous Wreck (II) Inmate From: |
posted 08-16-2002 01:13
Not exactly, but I'm always looking to learn something new. |
Paranoid (IV) Inmate From: Dublin, Ireland |
posted 08-16-2002 15:36
I actually have a script where stopping an entire script dead in its tracks at a certain point would be quite handy. But I dont think you can do that , have and if(stopped) on key functions and then set notstopped to true to stop it doing anything. ( you'll have to stick in var stopped = 0; globally, of course ) Pugzly's trick works on setInterval aswell. |
Maniac (V) Mad Scientist From: 100101010011 <-- right about here |
posted 08-16-2002 17:55
You can do this with a setTimeout loop something like so |
Nervous Wreck (II) Inmate From: |
posted 08-17-2002 07:57
Thanks guys for the suggestions. I'll have to play around with them this weekend. |
Paranoid (IV) Inmate From: Lebanon |
posted 08-17-2002 09:32
sleep() or alike does not exist in JavaScript! |
Nervous Wreck (II) Inmate From: |
posted 08-20-2002 23:55
I got the functionality I'm looking for. |