Hi - I'm using the function below, to add items from one list box, to
another - however, when I post the page back to iteself (ASP) and do a
request.form, it does not pick up any items in the second list - because
they're not hilighted when the page is posted.
Is there a way of picking up the items in the list, regardless of
whether they are selected ot not?
Thanks for any help, Mark
<SCRIPT LANGUAGE="JavaScript">
<!--
function Populate() {
frm=document.forms[0]
field1=frm.txtaddresslist
field2=frm.txtmemb
for(i=0, j=0;i<field1.length;i++) {
if(field1.options[i].selected) {
newOpt=field1.options[i].text
// a=field2.length
// alert(a)
// field2.length++
alert(field2.length)
a=field2.length
field2.options[a]= new Option(newOpt,newOpt)
j++
}
}
}
// -->
</SCRIPT>
Mark Tait
ma**@fixitks.co.uk
www.fixitks.co.uk
Mark Tait
ma**@fixitks.co.uk
www.fixitks.co.uk
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!