This document was generated from CDN thread
Created by: yogesh kumar on 23-09-2013 08:00:57 AM
Hi All,
In my gadget I want to put some logic when user logs out from finesse or closes browser window. Where can I implement the logic. I mean where do I get such events.
Thanks
Subject: RE: New Message from yogesh kumar in Finesse - General Questions: Logout or
Replied by: David Lender on 23-09-2013 11:09:02 AM
Your gadget will not receive any events if the User logs out of Finesse or closes the browser window. If the User logs out of Finesse, your gadget is no longer available and the browser is returned to the Finesse login page. If the browser is closed the gadget is also no longer available.
Subject: RE: Logout or Browser close event in Finesse gadget
Replied by: yogesh kumar on 08-11-2013 12:22:59 AM
Thanks Lender for the reply. Do we get any other event before or after logout? Generally in web apps we get load/unload event. Do we get similar event when gadget unloads.
Subject: RE: New Message from yogesh kumar in Finesse - General Questions: RE: Logou
Replied by: David Lender on 08-11-2013 08:30:44 AM
No, there is no gadget unload event.
Subject: RE: New Message from yogesh kumar in Finesse - General Questions: RE: Logou
Replied by: Gary Olmsted on 08-11-2013 08:35:27 AM
Hey Yogesh,
While there is no Gadget unload event specifically, Gadgets are still hosted within an iFrame. You should be able to register a window.onunload event handler to do some code. It won't be synchronous, but should have a chance to execute. Have you tried this?