PDA

Click to See Complete Forum and Search --> : Netscape Issue with Disabling a List Box


Gin_bee
May 25th, 2001, 01:33 AM
I have code which disables and re-enables a List Box depending on whether a check box has been selected or not. The Code works within IE but not Netscape. When Disabled all the Items are showen as selected and then all cleared when the check box is unselected.

Within Netscape if the user selects the Check box all the items come up as selected yet the user can still hit the List Items. This clears the box of looking like all the items are selected. The user is NOT able to select any of the items within the box.

How can a lock down this List Box and prevent it form looking like its been re-enabled? If the user clicks the List Box the top item keeps apearing as if it has been selected.

_____________________________________
'this is what enables and disables the List.
<input type="checkbox" name="checkboxAll" value="checkbox" onclick="if (checkboxAll.checked) {SelectAll(); document.frmMine.LIST.disabled=true; else{document.frmMine.LIST.disabled=false; ClearALL()}">

---
'this shows all items as selected.
function SelectAll() {
var colOptions = document.frmMine.LIST.options;
var intList;
for (intList=0;intList<colOptions .length; intList++)
if (!colOptions[intList].selected)
colOptions[intList].selected=true;
}

---
'this clears all items
function SelectAll() {
var colOptions = document.frmMine.LIST.options;
var intList;
for (intList=0;intList<colOptions .length; intList++)
if (colOptions[intList].selected)
colOptions[intList].selected=false;
}

Any help/ideas would be greatly appreciated. At the minute it looks stupid with Netscape . Thanks in advance
Gin

sail3005
May 25th, 2001, 07:00 AM
You can't disable forms in netscape, unfortunatly.

sebs
May 25th, 2001, 04:48 PM
just put a transparent layer on top of it(list)
and when checked(check box), hide the layer!



.......if you can, do a image the size of your list,put
it grey with low alpha and put it on your layer!!