v0|- Read About Features -v2|Multiple data retrieval options...v6|Easy to maintain data...other|More...d0|Data Storage%2FRetrieval methods d1|Dynamic database AJAX server request...d2|Dynamic XML file download...d3|Static XML within a document element...combine|Any combination of the above...m0|- XML Data Storage%2FRetrieval -m1|Script code never needs to be edited...m2|The online code generator...- Other Features -multi|Multiple Groupsnohide|No-Hide Optionextern|External Code ExecutionThe built-in AJAX routinescan make queries to your server side database-handling code%2Cusing either GET or POST%2Cparsing the returneddata and populating the optionsof the next menu.If you do not%2Fcannot use a database%2Cyou can easily storeyour option data ina file using the script'ssimple XML format.The simplest option to store data is within an %26lt%3BXML%26gt%3Bblock within the document itself.This option removes the need forserver requests after document load.To optimise bandwidth%2Fperformance%2Ceach submenu in a system can bepopulated using a differentretrieval method.To avoid repeated requests%2Cin-document storage is preferable.Server querying is more bandwidthefficient than downloading completeXML files.No need to worry aboutunqualified personsdisabling the code byintruducing a syntax errorinto an array.Means anyone can configure thescript and update option dataas needed%2C without having toemploy a developer.The script can managemultiple independent cascadedmenus systems within thesame document%2C with no limitto the number of menus in each.In some circumstancesyou may want to preventthe default action ofhiding unpopulated menus.Run an external function whenever a menu is populatedor de-populated. The function ispassed data to allow theprogrammer to decide theappropriate actionThis commonly-requested featurecan be used to control on-screendisplays relating to the current selections%2C or to act only when afinal selection is made.
Multiple Independent Hierarchical Dropdown Groups of Unlimited Size.
Un-selected listboxes can be auto-hidden or left visible.
Works with or without a database and server-side code.
Option to run any external callback function whenever a submenu is populated or cleared, allowing easy control of simultaneous information displays.
Data for options can be retrieved from:
XML stored in an <xml> element within the document.
XML stored in a separate file.
Dynamic database querying without reload.
Any combination of the above
The simple XML format, means data can be maintained safely by non-programmers.
- DEMO -
This 3-menu group is retrieving data from an in-document <XML> block
- DEMO -
This 3-menu group retrieves data from an XML file on the server for the first sub-menu, and via a server query for the second sub-menu. Expect short response delays.
The changing guidance text shown below, is under the control of an external function that the script calls: