views:

64

answers:

0

Hi

I’m using flash charts from http://www.maani.us/xml_charts/ in an ASPX page. I Want to display a simple chart inside a Modal Popup Extender (From AJAX).

Actualy Works fine at Firefox, but in IE 8 isn’t it perfect when I put it inside the Modal Popup Extender. In IE I can't see the flash animation.

Do you have any idea?

Page Code:

    <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
        <ContentTemplate>
            <asp:ModalPopupExtender ID="MyMPE" runat="server" PopupControlID="GraphPanel" DropShadow="true"
                BackgroundCssClass="modalBackground" TargetControlID="Button1" CancelControlID="clB">
            </asp:ModalPopupExtender>
            <asp:Button ID="Button1" runat="server" Text="Button" Style="display: none; visibility: hidden" />
            <asp:Panel ID="GraphPanel" runat="server" Width="610px" Height="380px" Style="background-color: White;">
                <div style="width: 100%; text-align: right">
                    <asp:ImageButton ID="clB" runat="server" Width="16px" Height="16px" ImageUrl="~/Images/close.png" /></div>

                <script language="JavaScript" type="text/javascript">

                    if (AC_FL_RunContent == 0 || DetectFlashVer == 0) {
                        alert("This page requires AC_RunActiveContent.js.");
                    } else {
                        var hasRightVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);
                        if (hasRightVersion) {
                            AC_FL_RunContent(
            'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,45,2',
            'width', '400',
            'height', '250',
            'scale', 'noscale',
            'salign', 'TL',
            'bgcolor', '#777788',
            'wmode', 'opaque',
            'movie', 'charts',
            'src', 'charts',
            'FlashVars', 'library_path=charts_library&xml_source=sample.xml',
            'id', 'my_chart',
            'name', 'my_chart',
            'menu', 'true',
            'allowFullScreen', 'true',
            'allowScriptAccess', 'sameDomain',
            'quality', 'high',
            'align', 'middle',
            'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
            'play', 'true',
            'devicefont', 'false'
            );
                        } else {
                            var alternateContent = 'This content requires the Adobe Flash Player. '
        + '<u><a href=http://www.macromedia.com/go/getflash/&gt;Get Flash</a></u>.';
                            document.write(alternateContent);
                        }
                    }

</script>

            </asp:Panel>
        </ContentTemplate>
    </asp:UpdatePanel>

Thanks