On Aug 20, 12:18 pm, blr21560 <[email protected]> wrote:
> Hi,
>
> I run this line :
>         Effect.multiple( tab, Effect.Scale);
>
> There are no effect.
> tab is an an array with two div elements.
>
> I run this line
>         Effect.multiple( tab, Effect.Fade );
>
> It's ok;
>
> Why ?
>
Same as Mojito's question above:

Effect.Scale is a 'core Effect' and invoked using "new Effect.Scale"
Effect.Fade is a 'combination Effect' and invokde usinjg "Effect.Fade"

Like TJ, I am not familiar with effects, so I don't know why there is
this difference.

Unfortunately the documentation page doesn't give any examples of
using Effect.multiple with core effects. This may be a bug, or you may
need a different syntax. My guess is that you would have to wrap the
constructor in an anonymous function:

Effect.multiple(tab, function(e) {new Effect.Scale(e)});

but I may be way off beam here.

> Thanks,
>
> Bernard
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" 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/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to