from what i remember there was not. you'll have to look into it. On Aug 7, 3:42 pm, Krishnakant Mane <[email protected]> wrote: > Is there a standard event that works on all browsers? > happy hacking. > Krishnakant. > > On 07/08/11 17:59, Mengu wrote: > > > > > > > > > you need to find a way to detech the browser close. that's possible by > > the way. in your js event function you will send an ajax request to > > your pyramid view which does whatever you want. that's all. > > > On Aug 7, 11:02 am, Krishnakant Mane<[email protected]> wrote: > >> Hello all, > >> I have an interesting problem here. > >> my application is made of a core engine written in xmlrpc. > >> It is published as a web service listenning on a certain port. > >> On the same server runs my pylons app served behind nginx. > >> So the basic work of all the controllers is to make calls to the rpc > >> engine and render templates or return json. > >> on the front end I have a logout function which calls an action to > >> remove one instance of an sqlalchemy engine from the core server. > >> Now the problem is not when some one clicks logout. > >> I want that the same controller action gets called when some one closes > >> the browser window directly using alt + f4 or clicks close on the browser. > >> I know that session closes once the user closes the browser, but in my > >> case the session also has to send a message to another service to close > >> some thing on that end. > >> So can some one tell me where to write the call to the core engin's > >> closeConnection(). > >> What actually happens when a user closes the browser? > >> Happy hacking. > >> Krishnakant.
-- You received this message because you are subscribed to the Google Groups "pylons-discuss" 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/pylons-discuss?hl=en.
