Hi all,
I'm using a treePanel ext. I'd like to load the object by a json
object.
I defined the treeLoader and its dataUrl. The dataUrl is a file .js.
This files contains a string json.
I don't know if it need a web server (the file is js) or after I
defined the data url it's mandatory a function for manage the returned
data.
Follow the code and the json data. When I'll load the data I want
attach to every menu items the onClick Event.
Please Help me!!!
Thanks in advance!

this.tree = new Tree.TreePanel({
                        region: 'west',
                        title:'Alis Wiever',
                        width: 200,
                        lines: false,
                        singleExpand: true,
                        collapsible:true,
                        expandable :true,
                        rootVisible:true,
                        loader: new Ext.tree.TreeLoader({
                        dataUrl:'get-nodes.js'
                        }),
                        root: new Ext.tree.AsyncTreeNode({
                                singleClickExpand:true,
                                text: 'Funtions',
                                id:'0',
                                trackMouseOver:true,
                                allowChildren :true,
                                useArrows : true,
                                expandable :false

                        }),



                });


JSON DATA
{"children":
        [
        {"text":"Inserisci nuovo
sample","id":"menu_sample_insert","leaf":true,"cls":"folder"},
        {"text":"Cerca
sample","id":"menu_sample_search","leaf":true,"cls":"folder"}
        ]
}

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" 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/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to