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