Using Animation Toolkit without ASP.NET

Last post 12-04-2006 9:54 PM by Ted Glaza [MSFT]. 1 replies.

Sort Posts:

  • Using Animation Toolkit without ASP.NET

    11-09-2006, 2:47 AM
    • Loading...
    • jckhemail
    • Joined on 10-13-2006, 4:07 AM
    • Posts 2

    It is possible to use the animation toolkit in using pure javascript. Becos I want to use the scaleAnimation in php platform.
    I tried some like this but have error "Type is undefined"

    <HTML>
    <HEAD>
    <TITLE> New Document </TITLE>
    </HEAD>
    <script src="Altas.js" type="text/javascript" defer></script>
    <script src="Common.js" type="text/javascript" defer></script>
    <script src="Animations.js" type="text/javascript" defer></script>
    <script>
    function play()
    {
     var ani = new AjaxControlToolkit.Animation.ScaleAnimation(new Sys.UI.Control($get("test"), 10, 5, .5, "px", true, true, "px");
     ani.play();
    }
    </script>
    <BODY>

    <div id="test" style="width:100px; height:100px">
    Test
    </div>
    <input type="button" onclick="play();" />
    </BODY>
    </HTML>

    Filed under: ,
  • Re: Using Animation Toolkit without ASP.NET

    12-04-2006, 9:54 PM
    Hi jckhemail,

    Yes, it's definitely possible to use the animation framework without ASP.NET.  The problem you're having is that you're missing other required JavaScript files.  I'd take a look at the scripts loaded on the page when you're using an Animation and make sure they're all included.

    Thanks,
    Ted
    This posting is provided "AS IS" with no warranties, and confers no rights.
Page 1 of 1 (2 items)
Microsoft Communities
Page view counter