PDA

View Full Version : re: basic help for chainSelect...



skooter
02-23-2007, 11:41 AM
1) Script Title: Chained Select Menu

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex1/chainedmenu/

3) Alrighty, I've been teaching myself html for two months now, and js for about 1 second - although I understand the principles. I'm trying to get Chained Select working, and have two questions:

first - how do I bind the select-levels to the select-form tags. I'm using the following code in my .html:

<title>Pick and Pack</title>
<link rel="StyleSheet" type="text/css" href="StyleSheet.css">
<script type="text/JavaScript" language="JavaScript1.6" src="chainedselects.js"></script>
<script type="text/JavaScript" language="JavaScript1.6" src="tryconfig.js"></script>
</head>

<body onload="initListGroup('demo', document.listmenu0.firstlevel, document.listmenu0.secondlevel, document.listmenu0.thirdlevel, document.listmenu0.fourthlevel)">

...

<form class="chainedSelects action="" method="get">
<select name="topLvlChain"></select><br><br>
<select name="secondLvlChain"></select><br><br>
<select name="thirdLvlChain"></select><br><br>
<select name="fourthLvlChain"></select><br><br>
<input type="submit" value="Add To Shopping Cart">
</form>

and have tried substituting the select names for the initListGroup variables but to no success. I know this has probably been posted before, but I couldnt find it...

Second question: what is the maximum lowest-level options CS can handle???

Thanks
xxS