Links

Lists

Latest Updates

Ruby On Rails List
Python list
Advanced Java
The JavaScript List
Apache Users
Full Disclosure
Linux Security

Search the archives!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Javascript] RE: function not defined only in Netscape 6


  • From: javascript@xxxxxxxxxx (Harry Love)
  • Subject: [Javascript] RE: function not defined only in Netscape 6
  • Date: Mon, 19 Aug 2002 10:31:32 -0700

-----Original Message-----
From: javascript-admin@xxxxxxxxxx [mailto:javascript-admin@xxxxxxxxxx]
On Behalf Of Miss Amy
Sent: Monday, August 19, 2002 10:15 AM
To: javascript@xxxxxxxxxx
Subject: [Javascript] RE: function not defined only in Netscape 6


You can see the script in action at this link.  If you view it with
IE or NN4, it works perfectly.  But if you view it with NN6, nothing.

http://faculty1.coloradocollege.edu/~apacheco/math/Faculty/welcome.html

--------------------------

Amy,
For the NN6 portion of your script, try changing d.getElementByName to
d.getElementById("yourID") and replace each
name="FacImage"/name="FacInfo" to id="FacImage"/id="FacInfo."

I'm not an expert, but I think d.getElementByName can be used in IE5
only, and therefore, should be avoided.  Better to use ID since it is a
valid DOM method.

Regards,
Harry