[thelist] Javascript - order of code execution

Alex thelist at rabarts.co.uk
Wed May 11 08:19:33 CDT 2005


Edwin Martin wrote:

 >The way to work around this is to split your code in two
 >parts: the first part where you update the user interface
 >and the second part, where you do the calculations.
 >
 >The you call the second part with setTimeout().

Hi Edwin,

Thanks for your response, which solved the problem.  For the benefit of 
the list, here's a modified version of the page I posted before, with 
the calculation called from within a setTimeout():

http://tinyurl.com/7mdux

Alex


More information about the thelist mailing list