Prerequisites

Since JEL is based on both the Prototype library and Dean Edwards' Base library, both of those will need to be downloaded first. The following script tag examples assume they are installed in the /js/lib/ folder, but it can obviously be anything:

JEL Builds

The JEL library is available in 3 different download sizes on the home page:

Assuming you've downloaded the regular size build and placed inside /js/lib/, then your script tags would then look like:

The Core Extender

The debate rages on about whether or not JavaScript developers should extend the built-in JavaScript objects for their own (evil) purposes. There seem to be two schools of thought:

Personally, I have no problem with extending the objects, since it can certainly be convenient to do so. Comparing the 2nd and 3rd lines of code below, I know which one I prefer:

JEL takes the diplomatic approach, and allows you to decide if you want to extend the built-in objects or not. This is done via the CoreExtender object - if you wish to extend the core JavaScript objects, and make the more convenient syntax available, simply add the line of code below to your global JavaScript space:

Note that internally, JEL does NOT assume that the core has been extended, and so favors the more verbose syntax. Please refer to the Jel.CoreExtender API page for more details about how this object works.

All Site Content © 2007 Travis Hensgen.  Icons by IconBuffet and FamFamFam.