Greeting All:
Time to pick the collective brain cell again. I have a web page that
adds options to a select box on the fly. What I need to do is set the
onDblClick event the same way. I need to call a function when the
user double clicks on anything in the list box.
ANy help would be greatly appreciated.
THanks
David
973-292-8656
I set the object initially as such:
<select style="visibili ty: hidden; border:none;" multiple name="xxx"
id="xxx" ></select>
UPon the click of various other objects on the page, the option(s) are
set this way:
function addItem(form){
var i=0;
if (form.xxx.lengt h == 0 ){
i=0;
}
else {
i=form.xxx.leng th
};
if (form.xxx.style .visibility != 'visible') {
form.xxx.style. visibility = 'visible';
};
form.xxx.option s[i] = new
Option(form.sta rtProcess.optio ns(form.startPr ocess.selectedI ndex).text
+ ' to ' + form.endProcess .options(form.e ndProcess.selec tedIndex).text,
form.startProce ss.options(form .startProcess.s electedIndex).v alue
+ ' to ' + form.endProcess .options(form.e ndProcess.selec tedIndex).value );
} //ENd Add Item