Child pages
  • ERJQuery
Skip to end of metadata
Go to start of metadata

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:

  • '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

Unable to render {include} The included page could not be found.
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.get()
  • jQueryGetLink
jQuery.load()
  • jQueryLoadLink

jQuery Widgets

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

Embrace Statelessness!

Unable to render {include} The included page could not be found.

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.

ERJQuery is WebObjects *5.4* compatible only

WOWODC '10 (Slides) - DirectToWeb 2.0