I have an event listener:
In the function teminateSession I`m sending an ajax request to the server to tell him that the session should be closed. I need to:Code:Ext.EventManager.on(window, 'beforeunload', terminateSession);
- delay the closing of the window until I get a response from the server.
- or for a few seconds so I`ll know the server probably got my ajax request.
Is it possible?