Is it possible to notify a server (make a single HTTP request with a bit of data, response is unimportant) when client leaves the page?
I'm actually using python-tornado comet application with javascript constantly keeping a request connection to the server (which gets closed and re-opened on event. Based off this: https://launchpad.net/eftw).
I didn't find a easy way to debug this (with FireBug, in particular). That makes it quite problematic.
Oh, and the actual code (since it somewhat usable already anyway): http://bazaar.launchpad.net/~hoverhell/xftw/trunk/files