This code works in IExplorer but not in Netscape.
function chgNucleo()
{
var sel = document.getElementById("STE");
if ( sel == null )
return;
var selNucleo = document.getElementById("NC");
if ( selNucleo == null )
return;
var lensel = sel.length;
for ( var i = 0; i < lensel; i++ )
sel.remove(0);
var indNucleo = selNucleo.selectedIndex;
var lenOpts = nucleos[indNucleo].length;
for ( var n = 0; n < lenOpts; n++ )
{
var op = document.createElement("OPTION");
op.value = nucleos[indNucleo][n][0];;
op.text = nucleos[indNucleo][n][1];
sel.add(op, n);
}
}
"kld" <kepald@hotmail.com> wrote...
> This code works in IExplorer but not in Netscape.
[snip]
What error are you seeing on the JavaScript console? Which version of
Netscape Navigator is "Netscape"?
kld - 22 Jul 2003 14:54 GMT
Error : Could not convert Javascript argument - 0 was passed, expected
object. Did you mean null? arg1
Version: Netscape 7.0
Thanks.
> "kld" <kepald@hotmail.com> wrote...
> > This code works in IExplorer but not in Netscape.
[quoted text clipped - 3 lines]
> What error are you seeing on the JavaScript console? Which version of
> Netscape Navigator is "Netscape"?