PDA

View Full Version : Chained Select Script



mylcorp
12-05-2014, 12:01 AM
1) Script Title: Chained Selects

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex16/chainedselects/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,""); } } // ------

mylcorp
12-05-2014, 12:32 AM
Solved the problem of script showing on page, however script still doesn't work

jscheuer1
12-05-2014, 05:32 PM
If you want more help, please post a link to the page on your site that shows the problem.

mylcorp
12-05-2014, 06:34 PM
Hi John,
Thank you for reply - its been a while

http://www.jamaica-travel.com/chainedselects/index.html

mylcorp
12-05-2014, 06:36 PM
Hi John,

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