Re: How to return Response in same context from another thread?
Re: How to return Response in same context from another thread?
- Subject: Re: How to return Response in same context from another thread?
- From: Lachlan Deck <email@hidden>
- Date: Tue, 7 Mar 2006 02:10:52 +1100
Hi Kieran,
On 25/02/2006, at 9:23 AM, Kieran Kelleher wrote:
Is it possible for me to generate a response back to the user in a
separate thread without a matching request?
For example, let's say user clicks a link to download a huge file
that's going to take 1 minute to generate before it can be
downloaded. Can I create a new Runnable class, push the WOContext
(I guess) to it and start it's run() and have that thread return a
response later using the WOContext while the user has gone off
browsing other pages? If so how do I return that response?
As was mentioned, not using that technique. But you can use
JavaScript's XMLHttpRequest to asynchronously place the request and
upon a response becoming available to fill in or replace the content
of a div with whatever you like...
with regards,
--
Lachlan Deck
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden