woops your right works a charm :D
On May 5, 1:02 am, Rauan Maemirov <[EMAIL PROTECTED]> wrote:
> Correct way to write is
>
> element.insert({ after: error });
> new Effect.BlindDown(error);
>
> >Is there a way to insert element with an effect before they exist?
>
> Have u tried to make error invisible before creating effect?
>
> On May 5, 3:46 am, Mech7 <[EMAIL PROTECTED]> wrote:
>
> > 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
-~----------~----~----~----~------~----~------~--~---