Wiki source code of ERJQuery

Version 65.1 by Ravi Mendis on 2010/05/03 20:11

Show last authors
1 == What is ERJQuery? ==
2
3 ERJQuery is an alternative Ajax framework for WebObjects applications.
4 It's is a [[jQuery>>http://jquery.com/]] version of [[ERPrototaculous]].
5 ERJQuery and [[ERPrototaculous]] are mutually exclusive frameworks. In other words, you may only use one or the other.
6
7 Features include:
8
9 * 'Organic' support for [[jQuery>>http://jquery.com/]] in WebObjects.
10 ** Light-weight dynamic elements to support jQuery
11 ** Transparent API that doesn't hide or abstract jQuery
12 ** Sans patches or extensions to jQuery
13 * Use of [[Unobtrusive Javascript>>http://en.wikipedia.org/wiki/Unobtrusive_JavaScript]].
14 * Pseudo-stateless ajax responses
15 * A set of jQuery widgets.
16
17 Ajax actions and update containers are handled just like [[ERPrototaculous]] except they use jQuery instead of Prototype and Scriptaculous.
18
19 ==== jQuery Widgets ====
20
21 * [[FileUpload>>http://valums.com/ajax-upload/]]
22
23 Support for the file upload widget has been implemented as an input and as a CSS style-able container.
24
25 = Embrace Statelessness! =
26
27 {{include value="WO:Embrace Statelessness"}}{{/include}}
28
29 ERJQuery embraces the stateless model Ajax offers in exchange for simplifying the work WebObjects has to do - it's a win-win!
30
31 So you may observe one notable difference between ERJQuery and the Ajax framework is in the way it handles ajax responses.
32 In ERJQuery, updates and actions break with typical WebObjects behaviour by being pseudo-stateless just like [[ERPrototaculous]].
33
34 == Compatibility ==
35
36 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.
37
38 {{warning title="ERJQuery is WebObjects *5.4* compatible only"}}
39
40
41 {{/warning}}