• download
  • documentation
  • forums
  • demo
  • contact
  • blog

meteora

javascript widgets

Documentation

  • Autocomplete
  • Bubble
  • Calendar
  • Carousel
  • Datagrid
  • Dialog
  • Editor
  • Effect
  • Filebrowser
  • Form
  • Jsonrpc
  • Menu
  • Notebook
  • Picbox
  • Popup
  • Searchlist
  • Selection
  • Spinbutton
  • Tablesort
  • Toolbox
  • Treeview
In order to post messages on this forum, you must be registered and logged in
80x80:1760834185_unknown.png
Forums » General » Help for beginners

How to begin

Posted by shlomoaran

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' } ] ); } );

  • Thursday April 29, 2010 @ 16:41 date
  • shlomoaran user
There are no replies yet.

Copyright © 2007-2009 Astrata Software.