I have an Flex based web application which has many panels.
These panels have textinput controls which is used to capture some
data. How do I prevent an user from navigating out of this panel
without saving? If the user is trying to get to a different part of
the application, and if there is unsaved data then I need to prompt
the user to save/cancel it.
I have a parent panel which acts as a place holder and I
add/remove child panels as required to display different panels. I
tried some events like remove/removed etc...Even if I am able to
detect the event, and prompt 'Do you want to save?'. If user says
Yes, then I need to save and go ahead with the work. But, if he
says No, I need to prevent the panel from being removed and retain
it. How to do this?