A collection of resources for Javascript developers who want to write modern, accessible, portal-safe JavaScript.
Best Practices
- Fluid's DHTML Developer Checklist: keyboard accessibility, ARIA, name-spacing, and other techniques
- Namespacing your JavaScript by Dustin Diaz: article on how to use closures to define your own private namespace.
...
- Lazy Function Definition Pattern: redefine your functions on the fly, great for init blocks [blog article]
- A Plugin Development Pattern: how to create a well-encapsulated jQuery plugin
- JavaScript Closures FAQ: everything you ever wanted to know about closures in JavaScript
- Five Ajax Anti-Patterns: Things to avoid when using client-side Ajax
- Seven JavaScript Techniques You Should Be Using Today by Dustin Diaz: a general overview of branching (nice use of try/catch), redefining functions, flags, bridges, event delegation (jQuery gives you this for free), encapsulation and closure, and creativity.
Accessible Javascript
- jQuery Accessibility Board [google group]
- Key-navigable custom DHTML widgets: Advice on how to make your interfaces keyboard accessible.
- Mozilla Developer Centre's ARIA Tutorial: An overview of the W3C's Accessible Rich Internet Applications specs.
- Fluid's DHTML Developer Checklist: keyboard accessibility, ARIA, name-spacing [Fluid document]
...