Because otherwise the browser won't refresh the screen, as the rendering
engine only executes when the javascript engine is idle.
Doug Melvin wrote:
> Why the setTimeout
> ----- Original Message -----
> From: "Jordi Ministral" <[EMAIL PROTECTED]>
> To: "Doug Melvin" <[EMAIL PROTECTED]>
> Cc: <[EMAIL PROTECTED]>
> Sent: Friday, November 23, 2001 9:39 AM
> Subject: Re: [Dynapi-Dev] forms in NS
>
>
>
>>You can redraw the layer by doing
>>
>>layer.setVisible(false)
>>setTimeout("layer.setVisible(true)",0)
>>
>>Usually I do it ondragstop, I don't know if NS will be able to handle
>>this code executing on every animation step.
>>
>>
>>
>
>
> _______________________________________________
> Dynapi-Dev mailing list
> [EMAIL PROTECTED]
> http://www.mail-archive.com/[email protected]/
>
>
_______________________________________________
Dynapi-Dev mailing list
[EMAIL PROTECTED]
http://www.mail-archive.com/[email protected]/