Sorry for the delay in response, too me a while to finally wrap my head around the syntax used in this script- multi dimensional things was never my strong suit. Anyhow, having dissected your code, I believe I see the issue now. Firstly, in the BODY tag of your page, you forgot to register the name of the 3rd SELECT menu (so the script is aware of its existence):
Code:
<body onload="initListGroup('reservations', document.forms[0].month, document.forms[0].day, document.forms[0].time)" bgcolor="#ffcc00">
The code in red is new and should be added in. At the same time, for your 3rd SELECT menu, change its name to "time" to reflect what was registered above:
Code:
<select gtbfieldid="3" name="time" style="width: 110px;"></select>
Having fixed the above, there are also a number of problems with your configuration code (select_time.js). In a nutshell, you're calling addList() in a lot of places where you should be invoking addOption() instead. Make a copy of your original select_time.js first, then replace it temporarily with the following instead to see how the basic syntax should work:
Code:
var hide_empty_list=false;
addListGroup("reservations", "month");
addOption("month", "Select a Month", "", 1); //HEADER OPTION
addList("month", "August", "", "August");
addList("month", "September", "", "September");
addList("month", "October", "", "October");
addOption("August", "Select a Date", "", 1); //HEADER OPTION
addList("August", "14 (Sat)", "14", "aug-14");
addOption("August", "21 (Sat)", "21", "");
addOption("August", "28 (Sat)", "28", "");//END OF THIS NODE
addOption("aug-14", "Select a Time", "", 1);//HEADER OPTION
addOption("aug-14", "9:00am", "9:00am", "");
addOption("aug-14", "10:00am", "10:00am", "");
The above works all the way up to the 3rd select menu for the selection "August" -> "14 (Sat)" -> Some time.
Bookmarks