![]() ![]() |
Jan 23 2008, 07:51 AM
Post
#1
|
|
|
Freak ![]() ![]() Group: Members Posts: 136 Joined: 1-September 06 From: here Member No.: 109163 OS: XP Pro x86
|
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 ; |
|
|
|
Jan 30 2008, 09:48 AM
Post
#2
|
|
|
Group: Members Posts: 2 Joined: 30-January 08 Member No.: 174287 OS: XP Pro x86
|
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> |
|
|
|
![]() ![]() |
| Lo-Fi Version | Time is now: 4th December 2008 - 11:47 AM |