klenwell information services : Javascript

Javascript

jQuery

Use one of the following patterns for jQuery:

Module

The module is best used for modules where the abstraction is centralized and does not require multiple instantiations (as with a class object).

Plugin

To build your own classic jQuery plugin that can be used like so: $('div').foo()

Web Widget

To build a centralized widget pushed out to multiple sites (e.g. Disqus comment forms).