Double Click in Selection Box to bring up popup
Posted on 2004-10-26
I have 2 selection boxes: 1 with a list of employees and 1 with a list of selected employees. Using arrows you can move an empoyee from the Available List to the Selected List. This works great and makes it very clear for our clients. Now I would like to add the following functionality:
I would like to create it in a way that people can double-click on the name of the employee in the Selected Employee box and that double-clicking on that name will bring up a popup with that employee's profile. I am guess something like this but just do not know how to write it in JScript:
window.open("profile.asp?EMP_ID=" + document.formname.SelectedEmployee,SelectedItem.value);
<OPTION VALUE="EMP_ID">Employee Name</OPTION>
Is this possible and if so, how?