Me_Himanshu
10-10-2007, 06:14 AM
Hi all....
I am using firefox...
I want to add a particular event to listbox ...
my listbox name is 'ListAudioIn' and i am trying
oOption = document.createElement("OPTION")
oOption.text = "real player"
oOtion.value = 0;
ListAudioIn.add(oOption);
And i am getting an error: ListAudioIn.add is not a function
While other function calls like ListAudioIn.length & ListAudioIn.Remove are properly working......
THEN I TRIED....
ListAudioIn.options[INDEX] = new Option("Text", "Value");
I gave an integer value to 'INDEX'
Now I am getting an error..
The function ListAudioIn.options has no properties...
Help!!!!!
I am using firefox...
I want to add a particular event to listbox ...
my listbox name is 'ListAudioIn' and i am trying
oOption = document.createElement("OPTION")
oOption.text = "real player"
oOtion.value = 0;
ListAudioIn.add(oOption);
And i am getting an error: ListAudioIn.add is not a function
While other function calls like ListAudioIn.length & ListAudioIn.Remove are properly working......
THEN I TRIED....
ListAudioIn.options[INDEX] = new Option("Text", "Value");
I gave an integer value to 'INDEX'
Now I am getting an error..
The function ListAudioIn.options has no properties...
Help!!!!!