Monday, January 31, 2011


> You can't stop the user from closing the browser, or switching to another
> tab, with JS. And you shouldn't try to stop them navigating away - this
> sort of thing is only likely to annoy them intensely.

Taking this to the extreme - what do you want to happen if a person using
your site has a powercut? Or pulls out their network connection? This
will not run any site-close javascript.

We had a designer request similar functionality in a Struts app years ago
- it's really annoying and goes wrong often and we vowed never to do it

How about looking at RabbitMQ or XMPP for presence?


You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to
To unsubscribe from this group, send email to
For more options, visit this group at

No comments:

Post a Comment