Hmmm, my previous reply appears not to have gone through. Anyhow, I've built a quick proof of concept locally. Whether it would work for you would depend on a few things.
- Do you have any constraints on how data is stored? - When a node with children is closed, then re-opened, should any children that were open last time remain open or start again as closed? - You said it needs to be accessible (that's good), so you don't /really/ want it using tables, right? (Because this isn't tabular data, it's nested-list data, and thus should be using nested lists.) If you can answer these questions, and let me know how you want things to look, I can hopefully provide what you want, complete with comments on what each bit is doing so you can learn how it works. :) > Hello anybody who takes the time to read this! > > I am not new to CFM but have not hit it to deep as of this point. > Here is my problem and I hope I can explain this well enough. > > I have a page that will be driven left to right based on a > parent/child relationship. The problem I have is figuring out how to > loop indefinitely since my record set could contain a parent with a > single child with no children or it could go 100 levels deep. So in > reality, I basically want to make a tree like view that starts with 2 > parents (USA and CANADA). Now "I" know that those both have children > in my data structure (The query returns ID,ParentID and NAME. When I > click on USA I need to see all 50 states in a new table cell to the > right of it. Then when I click on a state, I need to see all of it's > counties... then when I click on a county I need to see all of it's > children which could be cities, agencies, city governmets etc... > > All of these clicks I speak of will be post backs and no javascript or > hidden divs since I need to make this little app accessible for the > blind. > > Also, if I have USA exapanded m-levels deep I need to be able to close > it at any of the nodes. I also need to be able to click on CANADA and > keep all the USA nodes open. So I need to figure out a way to track > what's open and how it's connected etc so that I can export out the > diagram in a PDF. > > PLEASE HELP!!!! ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Macromedia ColdFusion MX7 Upgrade to MX7 & experience time-saving features, more productivity. http://www.adobe.com/products/coldfusion?sdid=RVJW Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:274261 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

