On 6/5/06, Jay Parlar <[EMAIL PROTECTED]> wrote:
> I update the status of the process by using some simple AJAX from the
> client side. What I'd like is that if the client closes their browser,
> some exception gets raised, and I can cancel the rest of the process
> on the server side.

Interesting.  Classic ASP has a feature, Response.IsClientConnected,
which is used for that purpose and which is updated on each
Response.Flush().  It's a heuristic, of course, and I guess it must be
based on a successful low-level socket write.

I think if you're running under mod_python, you want to use
request.connection.aborted in your view function.

I dunno how well it works-- I only just read about it, but thanks for
giving me an excuse to learn the request/response cycle better.  :)

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to