• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How to return Response in same context from another thread?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Prev by Date: Re: XMLHttpRequests using WebObjects
  • Next by Date: Re: Making a dynamic Style sheet, suggestions
  • Previous by thread: Re: XMLHttpRequests using WebObjects
  • Next by thread: PDF Generation Best Practices for Web Objects Newbie.
  • Index(es):
    • Date
    • Thread