What is ERJQuery?

ERJQuery is an alternative, pseudo-stateless Ajax framework for WebObjects applications.
It's is a jQuery version of ERPrototaculous.
ERJQuery and ERPrototaculous are mutually exclusive frameworks. In other words, you may only use one or the other.

Features include:

Ajax actions and update containers are handled just like ERPrototaculous except they use jQuery instead of Prototype and Scriptaculous.

Unobtrusive JavaScript in ERJQuery

er.jquery.useUnobtrusively = true

jQuery WebObjects Elements

jQuery.get() has been implemented as a WebObjects dynamic element. Currently support for jQuery.get() and .load() is limited to the following:


jQuery Widgets

Support for the file upload widget has been implemented as an input and as a CSS style-able container.

Embrace Statelessness!

ERJQuery embraces the stateless model Ajax offers in exchange for simplifying the work WebObjects has to do - it's a win-win!

So you may observe one notable difference between ERJQuery and the Ajax framework is in the way it handles ajax responses.
In ERJQuery, updates and actions break with standard WebObjects behaviour by being pseudo-stateless just like ERPrototaculous.


ERJQuery can not be used with WebObjects 5.3 as it is dependent on the hooks for ajax added to WebObjects with version 5.4.

External Links

WOWODC '10 (Slides) - DirectToWeb 2.0