I'm looking at Brian Rinaldi's article, http://coldfusion.dzone.com/articles/multi-selects-related-cfajaxpr and I'm wondering about this JS:
function callFill(thisSelect,target) { formItemToFill = target; selectBoxes = new SelectBoxes(); selectBoxes.setCallbackHandler(fill); selectBoxes.getFillQuery(thisSelect.options[thisSelect.selectedIndex].value); } function fill(r) { var i = 0; var foo2 = document.forms['myForm'].foo2; foo2.options.length = 0; for (i in r.DATA) { foo2.options[i] = new Option(r.DATA[i][0],r.DATA[i][1]); } } ...and I have a question: function fill has hardcoded references to foo2 and seems to ignore target passed in to callFill. I suspect there's an easy fix but I'm currently blanking on it. Can you help? -- John Bliss IT Professional @jbliss (t) / http://www.brandiandjohn.com ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:337656 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm