Olla,

this is emberassing.
I tryd about 10 hours yesterday, including reverse engeneering of
script.aculo.us and nothing seems to work.

Solution: use with "new" and everything works fine.

Thanks for answering my stupid questions.

Ferion

On Apr 2, 1:09 pm, ColinFine <colin.f...@pace.com> wrote:
> 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 athttp://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