HTML_TreeMenu and Tree

This is a discussion on "HTML_TreeMenu and Tree" within the PHP Forum section. This forum, and the thread "HTML_TreeMenu and Tree are both part of the Program Your Website category.



Go Back   Webforumz.com > Main Forums > Program Your Website > PHP Forum

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Nov 10th, 2007, 10:57
Junior Member
Join Date: May 2005
Location: bath - england
Posts: 39
Thanks: 0
Thanked 0 Times in 0 Posts
HTML_TreeMenu and Tree

Can anybody give me some general advice about HTML_TreeMenu.
there seems to be quite a lot of possibly out of date packages and tutorials, and I’m getting confused about what is currently the best solution.

I have had a go with the kriesing Tree package, and have successfully hooked it up to a sql nested set database structure, but I can't integrate the Kreiesing Tree object with the heyes HTML_TreeMenu without getting an error. The error is because the kreising Tree package works with the field `name`, and the HTML_TreeMenu needs a field called `text`.

I have had a go at working with the latest Heyes Tree package (http://www.phpguru.org/static/tree.html) too, but there doesn't seem to be any documentation on creating Tree objects from a nested set sql structure.

Any thoughts?
Reply With Quote

  #2 (permalink)  
Old Nov 10th, 2007, 15:42
Junior Member
Join Date: Oct 2007
Location: Israel
Age: 21
Posts: 31
Thanks: 0
Thanked 0 Times in 0 Posts
Re: HTML_TreeMenu and Tree

http://www.google.com/search?q=recursion+tree+php
it simple to do it in recursion.
this is looking nice - http://www.sitepoint.com/article/hie...-data-database

i don't read it all but i saw the picture and the table and this is all what you need although i think you can find a better script code than they wrote there
Reply With Quote
  #3 (permalink)  
Old Nov 11th, 2007, 09:27
Junior Member
Join Date: May 2005
Location: bath - england
Posts: 39
Thanks: 0
Thanked 0 Times in 0 Posts
Re: HTML_TreeMenu and Tree

Thanks for this Eran. I was hoping to avoid recursion (the adjacency list model) because potentially my tree might have many thousands of nodes (hense I was intending to go with the nested set model (http://dev.mysql.com/tech-resources/...ical-data.html). Having said that, the article you found is a good one, and covers the nested set model nicely.

I wanted to take advantage of all of the javascript that has already been written in HTML_TreeMenu to dislpay these trees as expandable and colapsable interactive menus though. There is documentation that says that both the Kreising tree and the Heyes tree should work with the HTML_TreeMenu Pear component, but as I say, I can't find definitive documentation to show me exactly how to do it. I was hoping to aviod having to hack into the classes that kreising and heyes have written, or indeed write my own. Perhaps I'm being lazy, but these PEAR classes seemed like a good way of shortcutting a lot of work.

Last edited by simonneaves; Nov 11th, 2007 at 09:33.
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
help with tree menu mcnika JavaScript Forum 1 May 22nd, 2008 13:13
CSS JS tree menu & IE6 cheekyGirl JavaScript Forum 6 Feb 26th, 2008 14:30
Zoomable Tree jerols Free Web Site Critique 4 May 9th, 2007 12:49
tree structure of directory begeiste Introduce Yourself 6 Nov 19th, 2006 14:03
Tree view k_narend Classic ASP 2 Aug 23rd, 2005 11:56


All times are GMT. The time now is 02:14.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43