Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4

Thread: Threading

  1. #1
    New to the CF scene
    Join Date
    Dec 2003
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Treading

    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

  • #2
    Senior Coder
    Join Date
    Jun 2002
    Location
    Wichita
    Posts
    3,880
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.
    Check out the Forum Search. It's the short path to getting great results from this forum.

  • #3
    Senior Coder
    Join Date
    Jun 2002
    Posts
    1,404
    Thanks
    2
    Thanked 32 Times in 32 Posts
    Dated but still reasonably accurate....

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

  • #4
    New to the CF scene
    Join Date
    Dec 2003
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •