IWETHEY v. 0.3.0 | TODO
1,095 registered users | 0 active users | 0 LpH | Statistics
Login | Create New User
IWETHEY Banner

Welcome to IWETHEY!

New Relinquish in JavaScript
I was wonder how to do a relinquish operation in JavaScript?

What I have is a tight loop in JavaScript that hogs all the processor time. During this time, it is updating a textfield in the document. Unfortunately, the type JS loop means that the browser never gets time to paint the field (not to much a button to interrupt the processing is made impossible).

In Java you can use the Thread to get the desired effect (sleep, etc...). In VB that had that silly procedure you had to scatter all over the place DoEvents.

Is there a similar facility in JavaScript running inside the browser DOM?
Expand Edited by ChrisR April 19, 2003, 12:16:28 PM EDT
New Hmmm
I would try a recurring setTimeout

Many fears are born of stupidity and ignorance -
Which you should be feeding with rumour and generalisation.
BOfH, 2002 "Episode" 10
New Only way to do it, unfortunately.
And not all algorithms are amenable to breaking up easily in that fashion.

Javascript + thread constructs == serious pain :-P
Regards,

-scott anderson

"Welcome to Rivendell, Mr. Anderson..."
     Relinquish in JavaScript - (ChrisR) - (2)
         Hmmm - (tseliot) - (1)
             Only way to do it, unfortunately. - (admin)

Surely you are in error. The mouse does not change to a hand like all the other links on this fair website. Is something wrong with AOL tonight?
-- Dr. Martino Cortez PhD.
76 ms