Re: Asyncronous javascript component or thread emulation?




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

.



Relevant Pages

  • Re: IE has Encountered Problem will shut down ???
    ... Download "Hijack This!" ... > Every time I try and start IE 6.0 I get a pop-up window ... > running on Windows XP with Admin rights. ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • Re: How can I get training for sharepoint designer?
    ... Microsoft MVP - FrontPage Since 1997 ... The download intermediate training does not run. ... I get the pop-up window ...
    (microsoft.public.frontpage.client)
  • Re: Ad-Aware and Spyware Doctor
    ... on the "More Download Sites" link (since I was not interested in their ... They show download.com as a sanctioned download site. ... like you got a legit copy of Ad-Aware Free. ... When I launch Ad-Aware, it produces a pop-up window, on which the largest text reads "FREE Update to Ad-Aware". ...
    (alt.comp.anti-virus)
  • Re: Turbos here... (or not)
    ... "You will need to have JavaScript and cookies turned on in order to download ... The trials are accessed via a pop-up window, ... Will do the trick though. ...
    (borland.public.delphi.non-technical)
  • Re: How can I get training for sharepoint designer?
    ... The download intermediate training does not run. ... I get the pop-up window ... when I do click a link in the Action column, ... | Sharepoint Designer 2007 on the website. ...
    (microsoft.public.frontpage.client)