I am just beginning to use meteora so I copied the demo to my js file but it doesn't work The page is not loaded and there is an error.
In the html page (before the </head> I add the following line: <script type="text/javascript" src="meteora/src/meteora.js"></script>
In the body I add a 'comments_tree' div. I the js file I have an onLoad function (that is called when the page is loaded).
In the onLoad function I added the following:
Meteora.uses('Meteora.Treeview'); Meteora.onStart( function() { new MeteoraControl( new Treeview( // ELEMENT // ID or object reference to a container element. 'comments_tree', // NODE TREE [ { 'label': 'First level node i', 'items': [ { 'label': 'Second level node', 'items': [ { 'label': 'Third level node i' }, { 'label': 'Third level node ii' } ] } ] }, { 'label': 'AJAX node', 'items': '/path/to/json/node' } ] ); } );