Forum: Ruby on Rails Win-Explorer Style Navigation Tree with dynamic loading

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Pascal F. (Guest)
on 2007-07-24 15:44
(Received via mailing list)
Hi There,

i want to create a windows explorer style navigation tree in my
with tree branches you can expand and colapse. The nodes in the first
two levels of the tree shall be loaded when the tree is displayed
The levels 3-x schall be loaded when the parent node is beeing
(because loading the whole data for the tree takes about 30 seconds
I've tested it by creating a simple unsorted html list. maybe
has_many :contracts, :include => evaluations isnt the best / fastest
to do this?)

so my questions are. is there a way to create such a tree with rails /
prototype /
build in features? (an not-too-complicated way, i know "somebody"
write the whole js for such a tree by himself with prototype and so
on, but i cant :) )

acts_as_tree, as far as i see, is just a way to "manage" the hirarchy
a "tree-like" structure, isn't it?

i'am sorry if i cant explain it better because my english is, uhm, low
level :)


This topic is locked and can not be replied to.