Hi,

> this._navButtons = [this._view.prevButton,
>                     this._view.nextButton,
>                     this._view.hideButton);

I assume in your real code, that ends with `]`, not with `)` as above?
As above, it's a syntax error.

> this._navButtons.invoke("_opacity", {'from': 0,
>                                      'to': 1,
>                                      'duration':1});

Do your button instances have a function called `_opacity` (with the
underscore)? I'm not a scripty-head and maybe I shouldn't be posting,
but the effect is called Effect.Opacity, and usually when scripty
mixes effects in as element methods, it's the name of the effect with
an initial lower case letter, so wouldn't that just be `opacity`?

FWIW,
--
T.J. Crowder
Independent Software Consultant
tj / crowder software / com
www.crowdersoftware.com


On Dec 7, 9:44 pm, Frédéric <[email protected]> wrote:
> Hi,
>
> I build an array with some DOM elements, and try to apply effects on them
> using invoke(). But it does not work.
>
> Ie may be a problem with function defined as pesudo-methods, but I don't
> get any usefull error neither in Firebug, nor in IE debugger.
>
> As I want to use Effect.Opacity(), I wrote a pure function as:
>
> function _opacity(el, args) {
>     new Effect.Opacity(el, args);
>
> }
>
> then in my class:
>
> this._navButtons = [this._view.prevButton,
>                     this._view.nextButton,
>                     this._view.hideButton);
> this._navButtons.invoke("_opacity", {'from': 0,
>                                      'to': 1,
>                                      'duration':1});
>
> In Firebug, I get:
>
> reference to undefined property this[arguments[0]]
> [Break on this error]
>
> without any traceback or code line. In IE, I get:
>
> 'undefined' a la valeur null ou n'est pas un objet
> ('undefined' as null value or is not an object)
>
> at line 713 of prototype.js; it is the call to my method:
>
>     return value[method].apply(value, args);
>
> What I did wrong? Is it a problem with this context?
>
> --
>     Frédéric

--

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