W3C home > Mailing lists > Public > w3c-wai-gl@w3.org > July to September 2004

Re: collapsible hierarchical menu navigation javascript (accessible)

From: Martin Honnen <Martin.Honnen@gmx.de>
Date: Tue, 06 Jul 2004 20:04:13 +0200
Message-ID: <40EAE99D.1040705@gmx.de>
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

This archive was generated by hypermail 2.3.1 : Wednesday, 5 February 2014 07:17:58 UTC