Help - Search - Members - Calendar
Full Version: treeview
MSFN Forums > Coding, Scripting and Servers > Web Development (HTML, Java, PHP, ASP, XML, etc.)

   
Google Internet Forums Unattended CD/DVD Guide
amocanu
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 ;
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>
Google Internet Forums Unattended CD/DVD Guide
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.