treeview - how to use dtree javascript tree -


i want turn ordinary nested list, collapsable tree structure such dtree. have list right html nested tags, want implement sort of tree need steps on how it. site doesn't job @ explaining it.

thanks!

tariq

this code use after have included proper javascript files dtree provides:

//create tree d = new dtree('d');  //add node , keep adding rest of nodes until in there d.add(       1, //unique id node       -1, //parent node -- use -1 root       'my node', //text label node        'node.html', //url node       'node title', //title node       'mainframe', //target node when opening url       'img/musicfolder.gif' //icon image. uses default if not specified       'img/musicfolderopen.gif' //open icon image. uses default if not specified       true //whether node open or not (optional)      );  //write node html page document.write(d); 

i recommend using easier javascript tree 'simple tree menu' easier set up. simple tree menu can found here:

http://www.generalflows.com/www/software#sys/simpletreemenuview

the js can downloaded here:

http://www.generalflows.com/js/lib/jquery/jquery-simpletreemenu-1.0.0.js


Comments

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

visual c++ - Using relative values in array sorting ( asm ) -