I’ve put together a simple example using my treeCFC. Basically this can handle adding tree nodes, deleting tree nodes, and retrieving subtrees (or the entire tree if you like). I dont currently have an example set up since my site is in php(but other languages follow the same principle. There are 4 functions in the cfc. I’ve also made it flexible for any amount of db columns.. the only requirements is to have the columns: id(int) parentId(int), rgt(int), lft(int).

Download Example Source

Share and Enjoy:
  • Print
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • Reddit
  • StumbleUpon
  • Technorati
  • Twitter