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

The full unminified AccDC source code is now available to download.

From: Bryan Garaventa <bryan.garaventa@whatsock.com>
Date: Wed, 26 Sep 2012 03:41:15 -0700
Message-ID: <63DC8F252D034F2FBFFFE761D338F91B@WAMPAS>
To: "WebAIM Discussion List" <webaim-forum@list.webaim.org>, <accessible@googlegroups.com>, <devacc@lists.wisc.edu>, <w3c-wai-ig@w3.org>
For those interested, the full, unminified, commented AccDC source code has been added to the AccDC archive package downloadable at WhatSock.com.

Additionally, I've updated the code for the Accordion, Footnotes, and ARIA Tree generators, which unfortunately weren't scalable as they were initially written. So now all of these can be called using an invocation statement with config objects and optional callbacks.

The ARIA Tree Generator is particularly powerful now, which now supports the generation of multiple trees using different XML files in the same page without conflict.

The syntax being:

var treeId = setTree( config );

For example, the setTree statement at
http://whatsock.com/modules/aria_tree_from_xml_module/js/setup.js

Fully configures the ARIA Tree generated at
http://whatsock.com/modules/aria_tree_from_xml_module/demo.htm

In the demo, the bind property is set to 'focus', but this can just as easily be set to 'click' or 'focus click', which will invoke the callback whenever the event is triggered on each tree item.

When there are multiple bind events, they can be distinguished in the callback by querying the event type via:

if (ev.type == 'whatever') Do Something;

Also, since the setTree function returns the AccDC Object ID for the top level tree object, you can programmatically control the tree, including all child objects, via:

var myTree = $A.reg[treeId];

myTree.siblings // An array of all tree objects at the same logical level

myTree.children // An array of all child tree objects

// Or simply
myTree.close() // To make it disappear.

I've also updated all other modules to use the method calls documented in the Misc section on the Core API tab, which has reduced the code sizes for each by twenty to forty percent; making them run faster, more consistently, and negates external dependencies.
Received on Wednesday, 26 September 2012 10:41:45 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 5 February 2014 07:13:30 UTC