This content originally appeared on Zach Leatherman and was authored by Zach Leatherman
Welcome, one and all, to the second installment of actual code examples for the Conservative Design series. The decision was made (by me) to rename the component in question from the original Hierarchical Select to Hierarchical Options, due to the fact that the hierarchy can consist of any multiple option component, and is not limited to just a select. And to this face, this particular component was documented in the original post entitled Conservative Design: Hierarchical Select Boxes.
Click the image above to go to the example.
Notes on the example: The Tree structure is as follows:
- Primary
- Secondary
- Tertiary
- Quaternary
- Quinary
- Quaternary
- 2nd Tertiary (is a static element that doesn’t hide)
- Tertiary
- Secondary
So without further adieu or out of place french, what do we have? 3 out of 4 requirements and 1 of 2 luxury items.
- Handles any number of select elements in a linear or tree (luxury item) like structure.
- Child select elements are optional based on parent selection. Can hide entire div element or display a message stating no options are available.
- Compliant with the Reset button.
- Right now only loads from standard HTML markup (not yet from JavaScript or JSON or an XMLHTTPRequest)
- Only supports Select elements for now, in the future should be abstracted to support Checkbox Lists or any multiple option component.
Outstanding Bugs:
- Opera button doesn’t reset properly with Reset Button
- Clicking off of the default and then back onto the default has the original selections downstream (but doesn’t propagate more than one level)
This content originally appeared on Zach Leatherman and was authored by Zach Leatherman
Zach Leatherman | Sciencx (2007-03-23T05:00:00+00:00) Conservative Design Example: Hierarchical Options. Retrieved from https://www.scien.cx/2007/03/23/conservative-design-example-hierarchical-options/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.