- From: Martin Honnen <Martin.Honnen@gmx.de>
- Date: Tue, 06 Jul 2004 20:04:13 +0200
- To: w3c-wai-gl@w3.org
Fentress, Robert wrote:
> I’ve created a JavaScript navigation system and would appreciate any
> feedback anyone might have about it and the techniques I’ve used to make
> it accessible. A sample of it in action is at
> http://courses.iddl.vt.edu/samplecourse/. The JavaScript is at
> http://courses.iddl.vt.edu/samplecourse/navigation.js.
> I’ve tried it out on WinXP with Netscape 4.7
With Netscape 4 you are causing a script error as you use
document.getElementById without a proper check so you could do with
function initialize(menuObj) {
if (typeof document.getElementById != 'undefined') {
// put existing code here e.g.
menu = document.getElementById(menuObj);
...
}
}
to prevent the errors with Netscape 4 (or IE4 as well).
--
Martin Honnen
http://JavaScript.FAQTs.com/
Received on Tuesday, 6 July 2004 14:26:52 UTC