enable action "re enable" doesn't seem to work...

Last post 11-10-2009 7:02 PM by billv2. 1 replies.

Sort Posts:

  • enable action "re enable" doesn't seem to work...

    11-10-2009, 5:23 PM
    • Member
      171 point Member
    • billv2
    • Member since 04-18-2005, 1:59 PM
    • Posts 40

    I'm using an animation, to animate a modal popup extender that resides within a panel.  So far it seems to be working relatively well, however, I can't seem to get it to "reset" itself so that it can be used repeatedly.  I'm only getting one use and then it looks like I need to reload the page to get it to work again.

    The target control id is a link button.  When I first load the page, the link button is active, like a hyperlink.  I can click on the button, the animation does it's thing, and then a close button shuts it down.  The link button then turns color like a visited hyperlink, you can click it but nothing happens, no animation.  If I reload the page (F5), the link goes active again and it works, but only 1 time.  I tried using the Enable Action below, it appears to "reactivate" the link button, but it still doesn't work.

    <EnableAction Enabled="true" AnimationTarget="customerPromptsLinkButton" />

    So for some reason, it appears that I need to reload the page.  Can anyone give me some insight?  Thanks

     

     

    bill
  • Re: enable action "re enable" doesn't seem to work...

    11-10-2009, 7:02 PM
    • Member
      171 point Member
    • billv2
    • Member since 04-18-2005, 1:59 PM
    • Posts 40

    By eliminating the animation (below), I was able to get the modal popup to work correctly, e.g., no postbacks.  The behavior with the code below was:

    Page first load, click on target control and MPE with animation worked correctly.  Click Again on the target control and nothing seemed to happened, click a third time and the page seemed to postback and reactivate the control. 

    <%--<ajax:AnimationExtender ID="promptsOpenAnimation" runat="server" TargetControlID="customerPromptsLinkButton">
        <Animations>
            <OnClick>
                <Sequence>
                    <EnableAction Enabled="false" />
                    <Parallel AnimationTarget="promptsMPEPanel" Duration=".3" Fps="25">
                        <Move Horizontal="150" Vertical="-50" />
                        <Color AnimationTarget="promptsMPEPanel" PropertyKey="backgroundColor"
                                StartValue="#AAAAAA" EndValue="#FFFFFF" />
                    </Parallel>
                </Sequence>
            </OnClick>
        </Animations>
    </ajax:AnimationExtender>

    <ajax:AnimationExtender ID="promptsCloseAnimation" runat="server" TargetControlID="promptsBtnClose">
        <Animations>
            <OnClick>
                <Sequence AnimationTarget="promptsMPEPanel">
                    <Parallel Duration=".3" Fps="15">
                        <Scale ScaleFactor="0.05" Center="true" ScaleFont="true" FontUnit="px" />
                        <FadeOut />
                    </Parallel>
                    <EnableAction Enabled="true" AnimationTarget="customerPromptsLinkButton" />
                </Sequence>
            </OnClick>
        </Animations>
    </ajax:AnimationExtender>--%>


     

     

     

     

     

    bill
Page 1 of 1 (2 items)