Results 1 to 5 of 5

Thread: Chained Select Menu

  1. #1
    Join Date
    Jul 2005
    Posts
    29
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Chained Select Menu

    Hi

    I have the same problem everyone else has but can't find the answer.. Basicaly ieverything works, except when you click the go button, it only displays the end url selected and doesn't follow it to the actual page.

    Any ideas how i fix it?

    Many thanks for any help

    http://www.dynamicdrive.com/dynamicindex1/chainedmenu/

  2. #2
    Join Date
    Jul 2005
    Posts
    29
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    ^^bump

  3. #3
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    You must have missed this line in the config.js file:
    Code:
    var onclickaction="alert" //set to "alert" or "goto". Former is for debugging purposes, to tell you the value of the final selected list that will be used as the destination URL. Set to "goto" when below configuration is all set up as desired.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  4. #4
    Join Date
    Jul 2005
    Posts
    29
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    nice one thanks.

    one thing though.. wheni click on go, it doesn't go the the page. instead it just refreshed the page and adds a really big long url such as:

    file:///C:/Documents/Desktop/sample.html?firstlevel=&secondlevel=&thirdlevel=http%3A%2F%2Fwww.mysite.com

    however if i set the settings to open ina new window, it works. What am i doing wrong?

  5. #5
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    You wouldn't happen to have used an input of the type 'submit' would you? Or, given an action or method to the form? Try to stick to the template as much as possible while still customizing it for your content:
    HTML Code:
    <form name="listmenu0">
    <table align="center"><tr>
    <td><select name="firstlevel" style="width:180px;"></select></td>
    <td><select name="secondlevel" style="width:160px;"></select></td>
    <td><select name="thirdlevel" style="width:160px;"></select></td>
    <td><input type="button" value="Go" onclick="goListGroup(document.listmenu0.firstlevel, document.listmenu0.secondlevel, document.listmenu0.thirdlevel)">
     <input type="button" value="Reset" onclick="resetListGroup('chainedmenu')">
    </tr></table>
    </form>
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

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
  •