Skip to main content
Known Participant
January 2, 2008
Question

Dynamic dependent list boxes

  • January 2, 2008
  • 1 reply
  • 412 views
Hi - I'm using a set of dynamic dependent list boxes where the choices in the second are filtered according to the selection made in the first. I've followed the tutorial here:

http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_14924&sliceId=2

It's all working fine, but I'd like to amend it so that the second list box includes an option to select ALL options - equivalent to <option value="%">Choose all</option>. Not sure how to edit the JavaScript to do this though and very grateful if anyone can help!

Thanks

Square Eye
This topic has been closed for replies.

1 reply

Inspiring
January 8, 2008
Are you using Spry? If its not xml you can use dsFiles.setDataFromDoc(Spry.Utils.stringToXMLDoc(xmlstr)); to make a dataset from a string created from your db. I have a site with two pages that use two drop downs- the first gives the options to the second which filters the data.Enter data if you want its all test input.
The source code shows how to do it. Check the tran_types.xml file to see how i change the xpath for each menu selection.
http://www.gohbcc.com/balances/index.php