how to handle signout when the browser in close in flex 3?
Posted
by kumar1425
on Stack Overflow
See other posts from Stack Overflow
or by kumar1425
Published on 2010-03-15T08:14:52Z
Indexed on
2010/03/15
8:19 UTC
Read the original article
Hit count: 200
javascript-events
my project had audit module ,which inlcude each and every action of the user to be recoreded
so when the user closes the browser the audit regarding the logout has to be stored in the database
i found one solution in the net ,but it is working in my machine's IE but falied to work in the friends machines IE why? the code is:
window.onbeforeunload = clean_up; function clean_up() { var flex = document.${application} || window.${application}; flex.myFlexFunction(); }
i place this code in the index.template.html file in the html-template foleder under flex src
and i place the below code in my main application.mxml file
ExternalInterface.addCallback("myFlexFunction",btnLogout);
and i defined the logout funtion
if any one has solution plz answer me.............
thank you..................
© Stack Overflow or respective owner