The good folks at EllisLab have just reported some good news about the progress of ExpressionEngine 2.0. It seems that ExpressionEngine 2.0 has just achieved feature freeze. This means no new features are likely to be added to EE 2.0 before its final release.

More interesting news is that a new addition that will be included in all versions of ExpressionEngine 2.0—built-in jQuery support.

Built-In jQuery Support

These questions get asked a lot: “How do you link to javascript in ExpressionEngine?” and “What is the best way to link to javascript in ExpressionEngine?

Many wonder which way is best to link to external javascript files: link as an EE template file or link as an external, javascript file (.js) outside of a template?

With this latest news it looks like these questions won’t be much of an issue anymore (at least for those who use the jQuery library).

The ExpressionEngine jQuery module will be available in both Core and Licensed versions.

Leslie Camacho states in a recent post on the ExpressionEngine blog:

“The jQuery module will allow people to use jQuery and its plugins in their templates without worrying about the location of the jQuery files. This way developers have access to jQuery in a secure way from just about anywhere in EE’s template engine.”

CodeIgniter and jQuery

There was a previous post about the new jQuery abilities in EE 2.0. Since ExpressionEngine 2.0 is built on CodeIgniter, this is going to be great for creating javascript functions.

Example:

// Effect: fade a div into view
$this->javascript->fade_in("div");

// Event: set up a click to show a submenu
$this->javascript->click("#button",
    $this->javascript->hide(".submenu");
);

// Plugin: using a jQuery plugin
$this->jquery->tablesorter();

Code example from ExpressionEngine 2.0: fully CodeIgnited!

Personally, I’m excited to see the new EE, and the news of the addition of the built-in jQuery module just whets my appetite even more. I can’t wait to see how this is actually implemented.

Do you use jQuery as your javascript library of choice when working with ExpressionEngine? How do you think the added jQuery support will affect the way you code in ExpressionEngine and CodeIgniter? Tell us about it in our comments.

Similar Posts: