Saturday, March 24, 2012

Call Animation versus hooking an event

I'm looking for a way to perform an animation on a dynamically defined object.

For instance...Let's take the Toolkit demo animation where a dialog flies out from a button and the button is grayedout.

Assume there is a page that has a list of items and each item has an associated More... button. What I would like is to be able to call a function when I click the More... button that would pass the button and div to the AE that I want to flyout . This would prevent me from having to code an AE block for each item and hardcode the name of the control I want to hook for the onClick event. In the end I'm trying to accomplish two primary things: 1) Avoid writing the AnimationExtender block for every item by hand and hard coding the id of the link/button and the div tag [This would also reduce page size]. 2) Avoid writing a function in the code behind that has to programatic create the AE blocks [Avoiding this would increase speed of rendering].

Is this possible with the current functionality of the AE or would it require a rewrite?

Hi there,

I am also trying to do something on the same lines as you just mentioned. I just wanted to know if you were able to do the above mentioned task. Kindly let me know if you have any information about how this can be done.

Thanks in advance,

Cheers

Vishy


I have not been able to accomplish anything to this date. I have currently put it on the back burner pending more time to work on it.

No comments:

Post a Comment