Results 1 to 5 of 5

Thread: Chained Select Script

  1. #1
    Join Date
    Jun 2012
    Posts
    18
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Chained Select Script

    1) Script Title: Chained Selects

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...ects/index.htm

    3) Describe problem: Trying to get sample to work. Have uploaded scripts:
    chainedmenu.js
    config.js

    and added html to page.

    rather than running in background chainedmenu.js appears on page as below :
    // Chained Menu // Copyright Xin Yang 2004 // Web Site: www.yxScripts.com // EMail: m_yangxin@hotmail.com // Last Updated: 2004-08-23 // This script is free as long as the copyright notice remains intact. var _disable_empty_list=false; var _hide_empty_list=false; // ------ ///// DynamicDrive.com added function///////////// var onclickaction="alert" function goListGroup(){ for (i=arguments.length-1;i>=0; i--){ if (arguments[i].selectedIndex!=-1){ var selectedOptionvalue=arguments[i].options[arguments[i].selectedIndex].value if (selectedOptionvalue!=""){ if (onclickaction=="alert") alert(selectedOptionvalue) else if (newwindow==1) window.open(selectedOptionvalue) else window.location=selectedOptionvalue break } } } } ///// END DynamicDrive.com added function////// if (typeof(disable_empty_list)=="undefined") { disable_empty_list=_disable_empty_list; } if (typeof(hide_empty_list)=="undefined") { hide_empty_list=_hide_empty_list; } var cs_goodContent=true, cs_M="M", cs_L="L", cs_curTop=null, cs_curSub=null; function cs_findOBJ(obj,n) { for (var i=0; i=0; i--) { list.options[i]=null; } } function cs_refreshList(list,opt,df) { cs_emptyList(list); for (var i=0; i0) { list.selectedIndex=df; } } function cs_getOptions(menu) { var opt=new Array(); for (var i=0; i0) { cs_initListGroup(content,content.cookie); } } } function resetListGroup(n) { var content=cs_findContent("cs_"+n); if (content!=null && content.lists.length>0) { cs_initListGroup(content,""); } } // ------
    Last edited by james438; 12-05-2014 at 07:08 AM.

  2. #2
    Join Date
    Jun 2012
    Posts
    18
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    Solved the problem of script showing on page, however script still doesn't work

  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

    If you want more help, please post a link to the page on your site that shows the problem.
    - John
    ________________________

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

  4. #4
    Join Date
    Jun 2012
    Posts
    18
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default page url

    Hi John,
    Thank you for reply - its been a while

    http://www.jamaica-travel.com/chainedselects/index.html
    Last edited by jscheuer1; 12-05-2014 at 06:59 PM.

  5. #5
    Join Date
    Jun 2012
    Posts
    18
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Got it working!

    Hi John,

    I got it to work just now!
    No need for immediate help
    Thank you!

Similar Threads

  1. Chained Select script with description
    By Bar2aYunie in forum Dynamic Drive scripts help
    Replies: 2
    Last Post: 01-01-2010, 05:06 PM
  2. Chained Select Menu - help plz!
    By MuMu in forum Dynamic Drive scripts help
    Replies: 0
    Last Post: 10-10-2009, 11:33 AM
  3. Replies: 1
    Last Post: 08-02-2007, 09:58 AM
  4. Chained Select Menu Script, need help
    By Fanaticus in forum Dynamic Drive scripts help
    Replies: 1
    Last Post: 09-29-2006, 09:56 PM
  5. Help with Chained Select Menu
    By montero in forum Dynamic Drive scripts help
    Replies: 1
    Last Post: 05-25-2006, 11:55 PM

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
  •