Modelpopup showing behind flash animation? - AJAX FAQ - Asp.Net

Modelpopup showing behind flash animation? - AJAX FAQ - Asp.Net

Problem with Modelpopup and Flash?

Try doing what IE 6 does with dropDownLists when a modalPopup is shown. Hide the object that displays the flash animation. To do this via javascript set the display of the object to none, like this:

objFlash = document.getElementById('flashObject');
objFlash.style.display = 'none';

and then when the modalPopup is closed change it back like this:

objFlash = document.getElementById('flashObject');
objFlash.style.display = 'inline';

OR


You can make use of add_shown and add_hidden client event to achieve it.

Please try the below code( 'ModalPopupBehavior' is BehaviorID of ModalPopup Control):

        function pageLoad(sender,e)
{
$find('ModalPopupBehavior').add_shown(cpc);
$find('ModalPopupBehavior').add_hidden(cpe)
}
function cpc(ev)
{
objFlash = document.getElementById('flashObject');
objFlash.style.display = 'none';
}
function cpe(ev)
{
objFlash = document.getElementById('flashObject');
objFlash.style.display = 'block';
}

0 comments:

Post a Comment

My Blog List