If you do "selObj.value" instead of "selObj.options[selIndex].value", it might send back a comma-delimited list of all the values. Give it a try, not absolutely sure if that will work though.
-- Josh ----- Original Message ----- From: "Tim Do" <[EMAIL PROTECTED]> To: "CF-Talk" <[email protected]> Sent: Friday, March 03, 2006 12:40 PM Subject: OT: js help > Hi, I'm trying to passing values from a popup back to the parent window. > In the popup window, I have a select box (multiple). I want to pass the > selected items back to the parent window but it is only passing back the > first value select not all the values selected in the drop down. Here > is what I have: > > <script language="JavaScript" type="text/javascript"> > function popit() > > { > > var selObj = document.getElementById('select1'); > var selObj2 = document.getElementById('select2'); > var selIndex = selObj.selectedIndex; > var selIndex2 = selObj2.selectedIndex; > > opener.document.getElementById("texta").innerHTML=selObj.options[selInde > x].value; > > opener.document.getElementById("textb").innerHTML=selObj2.options[selInd > ex2].value; > //alert(selObj.options[selIndex].value); > } > </script> > > <form action="pop2.cfm" method="post"> > > <select name="select1" multiple size="3"> > <option value="1">1 > <option value="2">2 > <option value="3">3 > </select> > <br> > <select name="select2"> > <option value="a">a > <option value="b">b > <option value="c">c > </select> > > <input type="button" value="submit" name="submit" onclick="popit();"> > > </form> > > > Thanks! > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234129 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

