I have a page with two fancytrees on the page - Tree1 and Tree2.
Under Tree1 is a button "show activities"
When this button is clicked then Tree2 will load it's content based on the node selection in Tree1.
How can I do this?
I'm thinking a click handler for the button that gets the id of tree1 and the active node, calls an AJAX to get the content then updates Tree2 with the new content.
Is this sensible? How do I reference each tree from the button handler?
Thkanks