Re: Asyncronous javascript component or thread emulation?
- From: "Julian Turner" <julian@xxxxxxxxxxxxxx>
- Date: 30 Nov 2005 00:06:13 -0800
aaronwmail-usenet@xxxxxxxxx wrote:
> Hi.
>
> I'm working on a project where a javascript program will get into
> the middle of some very complicated operation and then decide
> it needs to use to download an xml file from a server.
>
> 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.
[snip]
There are only two hacks I can think of which might help:-
1. If you are using the HTTPRequest object to download the XML file,
this can be set to synchronous or asynchronous (i.e. the function that
called the HTTPRequest can still keep running) download.
2. You could spawn a pop-up window/modeless dialogue box or
IFRAME(?) to do the download, as these are in some implementations
effectively a separate thread.
For instance, I use a pop-up window to provide a progress bar for a
function in the parent window. The parent window function can send an
update to the pop-up window without interrupting the parent window
function.
Regards
Julian Turner
.
- References:
- Asyncronous javascript component or thread emulation?
- From: aaronwmail-usenet
- Asyncronous javascript component or thread emulation?
- Prev by Date: javascript 2.0 release???
- Next by Date: Re: javascript 2.0 release???
- Previous by thread: Re: Asyncronous javascript component or thread emulation?
- Next by thread: Reusing HTML elements from one 'document' to another
- Index(es):
Relevant Pages
|