Re: Asyncronous javascript component or thread emulation?
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.javascript archive

Re: Asyncronous javascript component or thread emulation?

From: Thomas 'PointedEars' Lahn <PointedEars@web.de>
Date: Tue Nov 29 2005 - 23:19:19 CET

aaronwmail-usenet@yahoo.com wrote:

> Because it's in the middle of something potentially complicated
> I need to down the file synchronously (without interrupting the
> flow of control), but I'd like to make sure that the browser doesn't
> freeze up.

I do not think it is possible to resolve that contradiction.
You have to decide what is more important to your task.
 
> In another programming environment I would run the javascript
> component in a thread -- is there any portable and safe way to
> emulate this in javascript on recent browsers?

No, ECMAScript implementations like JavaScript 1.5+ (Mozilla/5.0)
and JScript 5.5+ (IE/5.5+) are single-threaded.

PointedEars
Received on Sat Dec 3 04:32:59 2005