Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can't get List Boxes to work in netscape

Status
Not open for further replies.

Progmatic

Programmer
Oct 17, 2000
33
CA
Hi,I am really caught in aproblem any help is much appreciated.I'll try my best to write it out clearly.

I have an asp page in which I have a list box which gets loaded dynamically using javascript.This is how I am doing it.
I have an array ArrListBox[] which hold all the elements I want in list box.The I call function
GetListBox(document.form.ListBox,ArrListBox)
from PageInit() function(which is loaded on onload event of Body of the page).The function is written as following:

GetListBox(combo, items)
{
var i;
var obj;

for (i = 0; i < items.length ; i++)
{
obj = items;

combo.options[combo.options.length] = new Option(obj.Name, obj.ID);


}
}

And in my HTML code the statement for the ListBox is as follows:
<td width=&quot;150&quot;>
<select name=&quot;ListBox&quot; size=&quot;1&quot; id=&quot;ListBox&quot;> </select></td>

The problem is that this code loads up my list boxes very well in IE and it works well as a pop-up menu but when I run my page in Netscape,it doesn't expand out and clicking on the extension edge I just get a dark blank line.
Anybody with any solutions Please help me......
Thnx
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top