...

View Full Version : Threading



stevek
12-19-2003, 06:39 PM
Where can I get info on how theads work within JavaScript? My bacis question is this: If I have a button which calls a function when clicked, should that function be thread safe? If a user could click the button fast enough, would there be a problem if the function was accessing a JavaScript variable outside the function?

Steve

Roy Sinclair
12-19-2003, 06:56 PM
A user cannot click a button faster than the script which handles the button will process since the button won't be re-enabled for a second click until the script has finished processing.

adios
12-19-2003, 06:58 PM
Dated but still reasonably accurate....

http://caucuscare.com/~roth/JAVASCRIPT/ch10_07.htm

stevek
12-19-2003, 07:37 PM
Thanks



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum