Forum Moderators: open
Once the Resources have been chosen then you click add, it builds a string closes the pop up window and pass the sequence number into the parent URL.
Problem:
The problem is that is only passing through the first selected Resource and not adding the rest. So it isnt building the string for the URL (eg. pagename.asp?Resource=1,2,3,4,5,8)
The Code:
function selResource(lngTaskSeq)
{
for (var i=0; i<formName.fieldName.length; i++)
{
if (formName.fieldName[i].selected)
{
window.opener.location="PageName.asp?page=submit&assign=" + formName.fieldName[i].value + "&taskseq=" + lngTaskSeq
break;
}
}
window.close(this);
}
any help is much appreciated.
Tom