Results 1 to 2 of 2

Thread: Third Drop Down Won't Populate

  1. #1
    Join Date
    Sep 2010
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Third Drop Down Won't Populate

    1) Script Title: chainedmenu.zip

    2) Script URL (on DD):
    Code:
    http://www.dynamicdrive.com/dynamici...hainedmenu.zip
    3) Describe problem: A third option menu won't populate

    Hello,

    This may have been resolved in another thread, but I can't see where the responses may have resolved the issue if they were sent as emails or something. I have an already edited version of the config.js file that a previous webmaster used for a site that I have taken on as manager. I am attempting to get his current script to populate a third field to display times available for a registration form.

    Here is a current sample of the JS -
    Code:
    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");
    addList("August", "21 (Sat)", "21", "");
    addList("August", "28 (Sat)", "28", "");//END OF THIS NODE
    
    addOption("aug-14", "Select a Time", "", 1);//HEADER OPTION
    addList("aug-14", "9:00am", "9:00am", "");
    addList("aug-14", "10:00am", "10:00am", "");
    And here is a current example of the form areas needing to be populated -
    Code:
    <tr>
    <td align="right">Month:</td>
    <td align="left"><select name="month" style="width:130px;">
    </select></td>
    </tr>
    <tr>
    <td align="right">Day:</td>
    <td align="left"><select name="day" style="width:110px;">
    </select></td>
    </tr>
    <tr>
    <td align="right">Arrival Time:</td>
    <td align="left"><select name="time" style="width:110px;"></select></td>
    </tr>
    It works up till choosing a date, but when I attempt to get the time option to drop to the next select menu, nothing happens. I have line-by-line compared his chainedmenu.js file and there are no differences in what he has edited to possibly stop it from populating any further than the 2nd select menu.

    Here is a link to see the current status of the issue -
    Code:
    http://harvestfarm.net/PREVIEW/test/...tions_test.php
    Thanks for your help and if it there is another post on the forum that has a resolution for this you can point me in that direction and I will take it from there.
    Last edited by jscheuer1; 09-29-2010 at 06:09 PM. Reason: remove hot links from broken links

  2. #2
    Join Date
    Aug 2004
    Posts
    10,140
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    Have you looked at my response here: http://dynamicdrive.com/forums/showthread.php?t=57884 Please try and just reply to that thread instead of creating a new one, it makes it easier for people following the issue.
    DD Admin

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •