Blog Communities Publishing Magazines

« Sharing Google Writely Invites | Main | Website Design Mistakes »

August 01, 2006

JavaScript And Threads

From a good post on JavaScript, threading, and Ruby.

When you use XMLHttpRequest to fetch or send data, you create methods or functions to act as callbacks. At some point the callbacks are run, and data magically appears into your classes. That feels a lot like threading to me, the fact it’s asynchronous. I remember reading Thomas Fuchs saying something about JavaScript being single-threaded, a quick search found the comment: [Rails-spinoffs] Ajax.Request synchronization (onSuccess beforeonComplete?).

 

Related Products:
Visit our store

Read more from this blogger:
JavaScript and threads: A browser dismantling session

Posted on August 1, 2006 12:40 PM by ruby o600.
Filed in Firefox under ruby on rails.
Permalink permalink | Comments (0)

Comments

Post a comment




Remember Me?






Copyright 2005 Blog Carnival, LLC.
We welcome your feedback: Contact us!