You can still define it inline:

Effect.toggle('myElem, 'slide', {
  afterFinish: function() {
   //it works...
   }
});

But good job sleuthing around and making it work. ;-)

-Fred

On Thu, Jun 19, 2008 at 6:37 AM, wellmoon <[EMAIL PROTECTED]> wrote:

>
> Sorry, my bad. I got it now. Inline functions do not work so well,
> defining the function as a variable elsewhere and calling it in the
> afterFinish property works fine...
>
> var myFunc = function() {
>  //it works...
> }
>
> Effect.toggle('myElem, 'slide', { afterFinish: myFunc });


-- 
Science answers questions; philosophy questions answers.

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to