Home Articles FAQs XREF Games Software Instant Books About Feedback Search Site-Map
irt.org logo

Q1695 How can I change a selected item in one select box based on a choice from another select box without using frames?

irt.org | Knowledge Base | JavaScript | Bugs | Q1695 [ previous next ]

Q1695 How can I change a selected item in one select box based on a choice from another select box without using frames?

Claude Schnéegans writes:

I think I got a new problem with Netscape Navigator 4 when borders are used in a style attribute inside a layer element.

<html>
<body>
<p style="border-color: black; border-width: 4px;">Border works</p>
</body>
</html>

But if we put the text inside a layer, then it does not work and it generates a Javascript error: document.ids.nsImplicitID3.borderWidths is not a function, even though we did not declare any Javascript code:

<html>
<body>
<layer>
<p style="border-color: black; border-width: 4px;">Border does not work</p>
</layer>
</body>
</html>

Now, I found the work around that declaring a dummy border in the body tag will make the JavaScript problem disappear, but may not render the border:

<html>
<body style="border-width: 0px;">
<layer>
<p style="border-color: black; border-width: 4px;">Border works</p>
</layer>
</body>
</html>

Feedback on 'Q1695 How can I change a selected item in one select box based on a choice from another select box without using frames?'


Provide feedback ...
AddThis Social Bookmark Button

Provide feedback ... AddThis Social Bookmark Button


Last Updated: 30th March 2008. Maintained by: Martin Webb and Michel Plungjan
irt.org liability, trademark, document use, privacy statement and software licensing rules apply.
Copyright © 1996-2008 irt.org, All Rights Reserved.