I see... but why wont it work if i do something like:

Element.insert(element,{ after: error });
new Effect.BlindDown(error);

Is there a way to insert element with an effect before they exist?

On May 4, 9:47 pm, Christophe Porteneuve <[EMAIL PROTECTED]> wrote:
> Mech7 a écrit :
>
> > Is it possible to create effects on elements with that classname
> > instead of by id? with scriptaculous.
>
> Er…
>
> Instead of:
>
>    new Effect.Blah('id', options);
>
> You could go:
>
>    $$('.yourClassName').each(function(element) {
>      new Effect.Blah(element, options);
>    });
>
> Or if the effect has a builtin method for it (say, Fade):
>
>    $$('.yourClassName').invoke('blah', options);
>
> --
> Christophe Porteneuve aka TDD
> [EMAIL PROTECTED]
--~--~---------~--~----~------------~-------~--~----~
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 [email protected]
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