Hi,

For Situation 1 - I think we can capture windows javascipt event
"onbeforeunload" and on that event handler we can call flex methods which
will show the Flex alert and then u can easily perform the action in flex.

For Situation 2 - I think u cannot hide back, forward and refresh buttons
rather u can disable back and forward buttons by making
historyManagementEnabled
property to false.

Hope this helps.

Regards
Gagan Deep
On 8 June 2010 07:06, Akshar Kaul <[email protected]> wrote:

> am also facing the same issue.. any help ??
>
> Akshar Kaul
>
>
>
> On Mon, Jun 7, 2010 at 21:05, Ashish Bhatia <[email protected]>wrote:
>
>> Hi,
>>
>> We have a Flex client and it is deployed as web application on web server.
>> User would hit the URL and the .html file which embeds the flex "swf" file
>> to load the application.
>>
>> Situation 1: When Browser close, back, forward, refresh buttons are
>> pressed we need to show the popup to user "Are you sure you want to perform
>> this action" with two options OK and Cancel.
>>
>> if they press OK then we need to perform the cleanup at the flex side and
>> once the clean up is done then Flex app will give green signal to browser to
>> perform close, back, forward , refresh action.
>>
>> If they press Cancel then nothing will happen.
>>
>> Situation 2:  Once the application is downloaded hide the
>> forward,backward,refresh button.
>>
>> Findings: For Situation 1# we can capture windows javascipt event
>> "onbeforeunload" and browser shows the popup and user can take action on
>> that popup, but we can not intercept the user action on the popup. So we can
>> not perform the cleanup if they press ok.
>>
>> Please pour in your suggestions.
>> Thanks,
>> Ashish
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Flex India Community" group.
>> To post to this group, send email to [email protected].
>> To unsubscribe from this group, send email to
>> [email protected]<flex_india%[email protected]>
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/flex_india?hl=en.
>>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Flex India Community" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<flex_india%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/flex_india?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups "Flex 
India Community" 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/flex_india?hl=en.

Reply via email to