PDA

View Full Version : Chained Selects using 2 lists (referenced in other member posts, but not explained)



jaynoble
10-02-2016, 09:16 PM
1) Script Title: Chained Selects

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

3) Describe problem: I have read all of the threads regarding putting 2 lists with subs on the same form/page. However, none go into detail on to exactly do it.

I need 2 lists each with 2 chained selects.
I am not using cookies, but creating the lists dynamically.
I am using Firefox (and checked IE which doesn't work either).
I have not modified the chainedselects.js file.
The first list displays properly with 2 working chained selects.
The second list display as unfilled selects.
I have kept the second list and remarked out the first (and changed the onload) to verify the second works...which it does.
I am using ASP.


<body onload="initListGroup('Reports1', document.forms[0].unassigned, document.forms[0].sv1);initListGroup('Reports2', document.forms[0].assigned, document.forms[0].sv2);">

I create the first list: addListGroup("Reports1", "Unassigned"); and add the items
I create the second list: addListGroup("Reports2", "Assigned"); and add the items

I understand the script is old, but it does work...just need the ability to create multiple/independent lists.

You help is much appreciated.