I'm trying to do a show/hide of several elements on a page and can't
get it working in Netscape 4.x. All other Windows browsers are
working.
My elements all have the same class name. <div
class="myClassN ame">stuff</div>
I cannot use ID because I don't know how many will appear as they are
dynamic recordsets. Netscape seems to work OK with IDs but not CSS
classes.
For Netscape 4.x I have coded in my JavaScript:
document.myClas sName.visibilit y = "hide"; to hide it and
document.myClas sName.visibilit y = "show"; to show it.
My CSS for this function is:
<style type="text/css">
..myClassName {visibility:hid den;}
</style>
When I use the toggle I get this error: document.myClas sName has no
properties.
Any suggestions? Right now we are considering having standards-aware
browsers use client-side show/hide ( via
document.getEle mentsByTagName( ) ) and forcing Netscape 4.x to reload
the page, but would prefer to do it all in the browser.
get it working in Netscape 4.x. All other Windows browsers are
working.
My elements all have the same class name. <div
class="myClassN ame">stuff</div>
I cannot use ID because I don't know how many will appear as they are
dynamic recordsets. Netscape seems to work OK with IDs but not CSS
classes.
For Netscape 4.x I have coded in my JavaScript:
document.myClas sName.visibilit y = "hide"; to hide it and
document.myClas sName.visibilit y = "show"; to show it.
My CSS for this function is:
<style type="text/css">
..myClassName {visibility:hid den;}
</style>
When I use the toggle I get this error: document.myClas sName has no
properties.
Any suggestions? Right now we are considering having standards-aware
browsers use client-side show/hide ( via
document.getEle mentsByTagName( ) ) and forcing Netscape 4.x to reload
the page, but would prefer to do it all in the browser.
Comment