Jump to content

treeview


Recommended Posts

I need to display some categories in tree form using php and javascript.

Where can i find some help?

My table looks like this

CREATE TABLE `categories` (

`category_id` bigint(20) NOT NULL auto_increment,

`parent_id` bigint(20) NOT NULL,

`category_name` varchar(100) NOT NULL,

`category_description` text NOT NULL,

`category_order` bigint(20) NOT NULL,

`active` enum('0','1') NOT NULL,

PRIMARY KEY (`category_id`)

) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=15 ;

Link to comment
Share on other sites


Guest PlanBForOpenOffice

Hi there,

if you want to see a static output, render the tree nodes into nested lists <ul>

If you want nodes that are collapsible, like the folder tree in an explorer window, look for the Dojo Toolkit that includes a tree view object, where you can control all those things.

Good luck

K<o>

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...