Here is the live example:
http://krunk.ca/Effect.Shake/
On Jul 1, 12:17 pm, Patrick
<patrickg....-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> I was under the impression that all Effects supported the afterFinish
> callback, but I cannot get it to work on Effect.Shake. Here is a
> simple example:
>
> <html>
> <head>
> <title>Shake Test</title>
> <script src="prototype.js" type="text/javascript"
charset="utf-8"></
> script>
> <script src="scriptaculous.js"
type="text/javascript"
> charset="utf-8"></script>
> </head>
> <body>
>
> <div id="test" style="padding: 20px; font-family:
sans-serif; margin:
> 100px auto; background-color: red; color: white; width: 100px; height:
> 100px;">
> Hello world.
> </div>
>
> <script type="text/javascript">
>
> Event.observe(window, "load", function()
> {
> Effect.Shake("test", { afterFinish: function()
> {
> alert("hi");
> } });
>
> });
>
> </script>
>
> </body>
> </html>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Spinoffs" group.
To post to this group, send email to
rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---