Conservative Design Example: Hierarchical Options

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 …


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.

Hierarchical Options
Click the image above to go to the example.

Notes on the example: The Tree structure is as follows:

  • Primary
    • Secondary
      • Tertiary
        • Quaternary
          • Quinary
      • 2nd Tertiary (is a static element that doesn’t hide)

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


Print Share Comment Cite Upload Translate Updates
APA

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/

MLA
" » Conservative Design Example: Hierarchical Options." Zach Leatherman | Sciencx - Friday March 23, 2007, https://www.scien.cx/2007/03/23/conservative-design-example-hierarchical-options/
HARVARD
Zach Leatherman | Sciencx Friday March 23, 2007 » Conservative Design Example: Hierarchical Options., viewed ,<https://www.scien.cx/2007/03/23/conservative-design-example-hierarchical-options/>
VANCOUVER
Zach Leatherman | Sciencx - » Conservative Design Example: Hierarchical Options. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2007/03/23/conservative-design-example-hierarchical-options/
CHICAGO
" » Conservative Design Example: Hierarchical Options." Zach Leatherman | Sciencx - Accessed . https://www.scien.cx/2007/03/23/conservative-design-example-hierarchical-options/
IEEE
" » Conservative Design Example: Hierarchical Options." Zach Leatherman | Sciencx [Online]. Available: https://www.scien.cx/2007/03/23/conservative-design-example-hierarchical-options/. [Accessed: ]
rf:citation
» Conservative Design Example: Hierarchical Options | Zach Leatherman | Sciencx | 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.

You must be logged in to translate posts. Please log in or register.