Skip to forum content

Mif

— mystic javascript interface

You are not logged in. Please login or register.


Post new reply

Post new reply

Compose and post your new reply

You may use: BBCode Images Smilies

All fields labelled (Required) must be completed before the form is submitted.

Required information for guests



Captcha image. Turn pictures on to see it.
Required information
Optional post settings

Topic review (newest first)

1

It works fine !

Thanks for you reactivity wink

2

try expand nodes loaded via ajax using loadNode event, something like:

tree.addEvent('loadNode', function(node){
    node.getChildren().each(function(child){
        child.toggle();
    });
});

3

Hello,

I have a (big) tree where each node is loaded with Ajax, and there is 3-4 levels of depth. The root is level 0, and when I use the following script (found in this forum), it only open all nodes from level 0 (the root), but never nodes from level >= 1.

this.root.recursive(function()
{
   // forest is set to true
    if (this.isRoot()) return; 
    this.toggle();
});

I'm trying to find something to expand all nodes from all levels, i.e. to load each of them with Ajax at the loading of the tree.

An idea ?

Thanks.