ERJQuery

Version 77.1 by Ravi Mendis on 2010/05/17 01:05
Warning
For security reasons, the document is displayed in restricted mode as it is not the current version. There may be differences and errors due to this.

What is ERJQuery?

ERJQuery is an alternative 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:

  • 'Organic' support for jQuery in WebObjects.
    • Light-weight dynamic elements to support jQuery
    • Transparent API that doesn't hide or abstract jQuery
    • Sans patches or extensions to jQuery
  • Use of Unobtrusive Javascript.
  • Pseudo-stateless ajax responses
  • A set of jQuery widgets.

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

Unobtrusive JavaScript in ERJQuery

Invalid macro parameters used for the [include] macro. Cause: [Property [page:reference] mandatory]. Click on this message for details.

jQuery WebObjects Elements

jQuery.get() has been implemented as a WebObjects dynamic element.

jQuery.get()

Currently support for jQuery.get() is limited to the following:

  • jQueryGetLink

jQuery Widgets

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

Embrace Statelessness

Invalid macro parameters used for the [include] macro. Cause: [Property [page:reference] mandatory]. Click on this message for details.

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.

Compatibility

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.

Warning
ERJQuery is WebObjects *5.4* compatible only