Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / Browsers / Internet Explorer / July 2003



Tip: Looking for answers? Try searching our database.

This javaScript code does not work in Netscape. Why?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
kld - 22 Jul 2003 12:48 GMT
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);
}
}
Rowland Shaw - 22 Jul 2003 14:04 GMT
"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"?
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.