On Apr 1, 5:02 pm, ferion <fer...@gmx.de> wrote:
> Hi everybody,
>
> i got another Problem wis prototype
>
Effects are actually script.aculo.us, not Prototype, but we knew what
you meant ;-)

> $(widget.widgetId).morph('left: 100px; top: 200px');
>
> is working perfectly.
> But i do want to move the element instantly (with duration:0)
>
> so i try to reform the command to
>
> Effect.Morph(widget.widgetId,{style: 'left: 100px; top: 200px' });
> This is throwing an Error ("this.initalize is undefined").
> Same thing occurs when i try to use Effect.Move which seems to be the
> better effect.
>
Look at http://wiki.github.com/madrobby/scriptaculous/effect-morph

The simple form is
 element.morph( .. )

The complex form is

 new Effect.Morph(element, ... )

You're missing the 'new'.


Colin

--~--~---------~--~----~------------~-------~--~----~
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 prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to