[thelist] Waiting for a variable in an SCR script

Peter-Paul Koch gassinaumasis at hotmail.com
Mon Jan 14 06:46:13 CST 2002


> >I'd set a timeout of, say, half a second after which I'd try again. As 
>long
> >as the variable remains undefined the script checks for it each 500
> >milliseconds. When it does have a value you execute the onLoad script.
>
>This seems a good suggestion. The only thing that worries me is that the
>processor will be tied up if I put this in a repeat loop for say ten
>cycles. Will the SCR script be processed during the repeat  or in the
>timeout periods?

The processor will be busy, of course, but on any remotely modern computer 
it won't tie up so many resources. After all it only has to check one 
variable. And yes, the included script will continue to download.

>If so, then this would be the ideal solution to my problem.

I think it is,

ppk

_________________________________________________________________
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com





More information about the thelist mailing list