I'm making a GUI for some browser application in HTML and javascript.
At the moment, I'm facing the challenge of implementing a page where a three-level deep "cascading choice" needs to be made. I was just wondering if there's a design pattern I could stick to, to make my code more manageable, since this is not a very uncommon problem.
The structure I need to achieve is the following:
{ A => { B => [C, C, ...] }
I would roughly use the following GUI layout (made with Balsamiq):
The problem is, as you can see, that parts of the view get hidden/removed all the time, and on top of that I need to store the changes during the lifetime of the page. It's not as simple as the mockup, as I don't use just multiselects to take care of everything...
How do you usually tackle this kind of problem?