Skip to forum content

Mif

— mystic javascript interface

You are not logged in. Please login or register.


Post new reply

Mifjs forum — Mif.Tree, Mif.Menu » Help » Newbie » 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

Ok lol i was just being stupid and not creating a container and the syntax for my json object was wrong. Just ignore me smile

2

Hi there,

I am really struggling to get something to show up, is there a basic tutorial to show me the basics of this framework?

I am looking through the demos and docs and just trying to get a very basic tree to show up.  This is my code so far but is giving me errors with mootools;

function jsonTry2() {
    var testTree = new Mif.Tree(
        { types: {
            nodeType: {
                openIcon: 'node-open',
                closeIcon: 'node-close'
            }
        },
        dfltType: 'nodeType'
    });
    var testObj = {property: {name: 'root'},
                        children:[
                            {property:{name:'node1'}},
                            {property:{name:'node2'},
                                children:[
                                    {property:{name:'node2.1'}}
                                ]
                            }
                        ]
                    };
    testTree.load(testObj);
    testTree.addEvent('onToggle',function(node, state){
        alert('Node '+node.name+(state ? 'expanded' : 'collapsed'));
    });
}

3

I have donwloaded the uncompressed version and that works ok!

4

Hi there!

I have been pointed to this js framework as I need a sortable nested list solution.

I have downloaded the tree builder files v1.2.6.1-packed.js, linked in my code and without actually doing anything else I get the error

--- Line:1 Error Expected ; ---

Have a downloaded the wrong file in error?

Many thanks

Mifjs forum — Mif.Tree, Mif.Menu » Help » Newbie » Post new reply