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@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---