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="visibility: 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.length == 0 ){
i=0;
}
else {
i=form.xxx.length
};
if (form.xxx.style.visibility != 'visible') {
form.xxx.style.visibility = 'visible';
};
form.xxx.options[i] = new
Option(form.startProcess.options(form.startProcess .selectedIndex).text
+ ' to ' + form.endProcess.options(form.endProcess.selectedIn dex).text,
form.startProcess.options(form.startProcess.select edIndex).value
+ ' to ' + form.endProcess.options(form.endProcess.selectedIn dex).value);
} //ENd Add Item