I put it in the onSuccess event of the Request.HTML.
It's right to use the initialize() method?

On Apr 2, 7:43 pm, Funkwarrior <[email protected]> wrote:
> MessaAccordion.initliaze(9 don't work and I don't know why. :(
>
> On Apr 2, 5:34 am, Ryan Florence <[email protected]> wrote:
>
> > Shouldn't
>
> > MessAccordion.initialize()
>
> > in the onComplete of your request do the trick?
>
> > Or instantiate it in the requested html.
>
> > On Apr 1, 2009, at 3:05 PM, Funkwarrior wrote:
>
> > > hi all,
>
> > > It's possibile to reinitialise an Accordion object?
>
> > > I made this:
> > > ====================
> > >                  var MessAccordion = new Accordion($$('.toggler'),$$
> > > ('.element'), {
> > >                            opacity: 1,
> > >                            alwaysHide: true,
> > >                            start:'all-close',
> > >                            onActive: function(toggler) { 
> > > toggler.setStyle('color',
> > > '#ff3300'); },
> > >                            onBackground: function(toggler) { 
> > > toggler.setStyle('color',
> > > '#000000'); }
> > >                    });
> > > ====================
>
> > > And everything's works fine.
> > > Now, after a Request.html, I change completely the Accordion elements.
>
> > > On Request.html onSuccess it's possibile to write a function like:
>
> > > ====================
> > >        MessAccordion.initialize();
> > > ====================
>
> > > ??
>
> > > Thank You!
>
> > > Funkwarrior

Reply via email to