1 May 2002 03:53
RE: Updating the DOM when doing JS
Snider, Sean <ssnider <at> ea.com>
2002-05-01 01:53:39 GMT
2002-05-01 01:53:39 GMT
Does anyone have a sample XPCom JS Component that does thread stuff like below? Sean -----Original Message----- From: Brendan Eich [mailto:brendan <at> meer.net] Sent: Wednesday, April 10, 2002 11:25 PM To: mozilla-dom <at> mozilla.org; Chris Subject: Re: Updating the DOM when doing JS Chris wrote: >I have a fairly complex set of javascript code that will need to run >for an extended period of amount of time. I have a XUL app that >displays the progress of this code as it runs. The problem I have is >this: > >The UI only updates after the JavaScript code completes. > >The workaround I have right now is this: I break the sequence into >small chunks and execute each chunk separately using setTimeout to >chain them together. If the timeout length is large enough (60 ms on >my machine but I assume it would vary which is bad) then the UI can >keep up. > >I guess what I really want to do is run this code in the backgound or >at least give the appearance that it is. I have searched the web and >newsgroups for a couple of days now with no luck as to how to approach >this problem.(Continue reading)
Discussion and argumentation in
RSS Feed