Jay Parlar 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.

Can't you use an "onUnload" event handler for that? I think that's what
Google Mail also uses for discarding message drafts that you're working
on when you close the browser window.

As the other poster already pointed out: just because you send stuff
out doesn't mean it arrives. And if you rely on the connection closing,
you're never safe from upstream proxies which decide to keep the
connection open even though the browser window was closed.

Daniel


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
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