JavaScript
  Home arrow JavaScript arrow Page 4 - Using the AnimationExtender Component in A...
Dev Articles Forums 
ADO.NET  
Apache  
ASP  
ASP.NET  
C#  
C++  
ColdFusion  
COM/COM+  
Delphi-Kylix  
Design Usability  
Development Cycles  
DHTML  
Embedded Tools  
Flash  
Graphic Design  
HTML  
IIS  
Interviews  
Java  
JavaScript  
MySQL  
Oracle  
Photoshop  
PHP  
Reviews  
Ruby-on-Rails  
SQL  
SQL Server  
Style Sheets  
VB.Net  
Visual Basic  
Web Authoring  
Web Services  
Web Standards  
XML  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
Sun Developer Network 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
JAVASCRIPT

Using the AnimationExtender Component in Ajax Control Toolkit (ACT)
By: Jayaram Krishnaswamy
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 32
    2007-03-13

    Table of Contents:
  • Using the AnimationExtender Component in Ajax Control Toolkit (ACT)
  • The AJAX Extensions and the ACT Components
  • Creating an animated web page step-by-step
  • Adding the animation tags
  • OnClick event of a control

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Using the AnimationExtender Component in Ajax Control Toolkit (ACT) - Adding the animation tags


    (Page 4 of 5 )

    Animation events will be defined under the Animation tags. You do not see any Animation component in the toolbox; however, if you place your cursor between the <AnimationExtender/> tags you will see the contextual drop-down shown in the next picture.

    .

    When you click on Animations, these declarative tags will be added to the source code. Animations support several kinds of events as mentioned earlier. Here the OnMouseOver and OnMouseOut events are used as shown. The complete source code is as shown in the next paragraph. Again only the items in the <form/> are shown.

    <form id="form1" runat="server">
      <asp:ScriptManager ID="ScriptManager1"
    runat="server">
      </asp:ScriptManager>
       <ajaxToolkit:AnimationExtender ID="AnimationExtender1"
    runat="server" TargetControlID="Panel1" >
      <Animations>
        <OnMouseOver>
          <Color Duration="2" StartValue="#66FFFF"
            EndValue="#66CCFF" Property="style"
            PropertyKey="color" />
        </OnMouseOver>
        <OnMouseOut>
          <Color Duration="2" EndValue="#6600FF"
            StartValue="#3366CC" Property="style"
            PropertyKey="color" />
        </OnMouseOut>
      </Animations>
      </ajaxToolkit:AnimationExtender>
      <asp:Panel ID="Panel1" runat="server"
        Height="50px" Width="125px"
        BackColor="AliceBlue" BorderStyle="Groove">
        "My first animation with ACT"
      </asp:Panel>
    </form>

    The displayed MouseiInOut.aspx page displays as shown and the OnMouseOver and OnMouseOut events can be verified.

    More JavaScript Articles
    More By Jayaram Krishnaswamy


       · Declarative mark up will have a larger following as it appeals to developers who are...
     

    JAVASCRIPT ARTICLES

    - Using Click Interceptions with a Database-Dr...
    - Using JavaScript Click Interceptions in an I...
    - Using Click Interceptions with JavaScript
    - QuickSort in Action
    - Quicksort
    - Using Mod_Security to Protect Your Server
    - Detecting and Countering Server Intrusions
    - Securing Your Web Server
    - Building a Secure Web Server
    - Protecting the Server
    - Book Review: Learning the Yahoo! User Interf...
    - Dynamically Generate a Selection List in a R...
    - Intergrate DWR into Your Java Web Application
    - Detect Browser Compatibility with the Reques...
    - Using the EXT JS Date Picker Widget






    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway
    Stay green...Green IT