wiki.chadlindstrom.ca

Web Development Best Practices and Design Patterns




Javascript Resources Index

Contents

Snippits and Examples

In no particular order, the following are a list of Javascript snippits and modules that are developed for example and reuse. The approach taken in most cases should be modular, re-usable and extendable.

Best Practices and Programming Style

The following is a list of demonstrated modules, practices and styles that are considered 'best practices' and work well in multi-developer projects of all sizes.

W3C DOM vs. DHTML

JSON

Object Oriented

Separation of Layers

Also discussed:

Behaviour Layer

Otherwise known as the scripting layer. This is where we use JavaScript to add function and behaviour to webpages.

Content Layer

Otherwise known as the markup layer. This is where we use (X)HTML markup to build our pages, micro-formats, structure and classification which later pulls together the Behaviour and Design Layer to complete the web page.

Design Layer

Otherwise known as the style later. This is considered the CSS stylesheets that get linked (or should I say 'applied') to the content layer. Together with the content layer and design layer, the browser knows what to render and what the page looks like.

Why the defined layers?

For now I'll give the easy answer; it makes maintainability and accessibility much better than if the layers approach was not taken. The opposite approach is the table-based development many pages are currently utilizing.

Unobtrusive and Accessible

Libraries and Frameworks

In no particular order, below is a listing of some libraries and frameworks for Javascript.

Specific

Some specific libraries, currently just libraries I have developed, am developing or maintaining.

Object Oriented

Events

DOM

Forms

Dates

Debug

Images

XML

Windows

Hacks

General

Some general libraries I have pulled together from other sources.

jQuery

jQuery is designed to change the way that you write Javascript.

jQuery is a Javascript library that takes this motto to heart: Writing Javascript code should be fun. jQuery achieves this goal by taking common, repetitive, tasks, stripping out all the unnecessary markup, and leaving them short, smart and understandable.


Behaviour

Separate Structure (xhtml) from Behavior (javascript)

Moo.FX

moo.fx is a superlightweight, ultratiny, megasmall javascript effects library, written with prototype.js.

Moo.FX Resources

AFLAX

A JavaScript Library for Macromedia’s Flash™ Platform. AFLAX is a method through which developers may use JavaScript and Flash together to create AJAX-type applications, but with a much richer set of vector drawing controls than are available in either Internet Explorer or FireFox. Developers using this library have access to the full range of Flash features, but without ever touching the Flash IDE.

Script.aculous

Javascript visual effects, together with prototype.js

AJAX

My own (in development) library that is meant to be lightweight:

  • ajax_utils.js (www.chadlindstrom.ca) - with connection pooling and error handling

Prototype

Prototype is a JavaScript framework that aims to ease development of dynamic web applications.

Prototype Resources

Rico

Rico provides a very simple interface for registering Ajax request handlers as well as HTML elements or JavaScript objects as Ajax response objects. Multiple elements and/or objects may be updated as the result of one Ajax request.

Rico Resources

MochiKit

MochiKit is a highly documented and well tested, suite of JavaScript libraries that will help you get things done, fast.

MochiKit Resources

Dojo Toolkit

Dojo is an Open Source toolkit that allows you to easily build dynamic capabilities into web pages and any other environment that supports JavaScript. Dojo provides components that let you make your sites more useable, responsive, and functional.

Dojo Resources

Solvent

The Solvent is a cross-browser AJAX application toolkit written in JavaScript. The Solvent is provided as modules or as an entire toolkit. The projects focus is to promote robust web applications and enable rapid web development.

Solvent Resources

SACK

Simple AJAX Code-Kit

SAJAX

SAJAX

SAJAX Resources

BackBase

BackBase

Yahoo Resources and Libraries

Other Resources

Usability and Accessibility

Animation

Testing

General

Retrieved from "http://wiki.chadlindstrom.ca/index.php/Javascript_Resources_Index"

This page has been accessed 6,370 times. This page was last modified 07:15, 12 January 2007.


This page has been accessed 6,370 times. This page was last modified 07:15, 12 January 2007.