Wiki source code of ERJQuery
Version 91.1 by Ravi Mendis on 2010/09/10 06:16
Hide last authors
| author | version | line-number | content |
|---|---|---|---|
| |
33.1 | 1 | == What is ERJQuery? == |
| 2 | |||
| |
87.1 | 3 | ERJQuery is an alternative Ajax framework for WebObjects applications. |
| |
65.1 | 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. | ||
| |
33.1 | 6 | |
| |
51.1 | 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 | |||
| |
81.1 | 19 | ==== Unobtrusive JavaScript in ERJQuery ==== |
| 20 | |||
| 21 | {{include value="WO:Using Unobtrusive JavaScript"}}{{/include}} | ||
| 22 | |||
| 23 | {{code}} | ||
| 24 | |||
| 25 | er.jquery.useUnobtrusively = true | ||
| 26 | |||
| 27 | {{/code}} | ||
| 28 | |||
| 29 | ==== jQuery WebObjects Elements ==== | ||
| 30 | |||
| |
89.1 | 31 | //jQuery.get()// has been implemented as a WebObjects dynamic element. |
| |
81.1 | 32 | |
| |
91.1 | 33 | Currently support for [[jQuery.get()>>http://api.jquery.com/jQuery.get/]] and [[.load()>>http://api.jquery.com/load/]] is limited to the following: |
| 34 | |||
| |
81.1 | 35 | ===== jQuery.get() ===== |
| 36 | |||
| 37 | * jQueryGetLink | ||
| 38 | |||
| |
91.1 | 39 | ===== jQuery.load() ===== |
| 40 | |||
| 41 | * jQueryLoadLink | ||
| 42 | |||
| |
51.1 | 43 | ==== jQuery Widgets ==== |
| 44 | |||
| 45 | * [[FileUpload>>http://valums.com/ajax-upload/]] | ||
| |
89.1 | 46 | * [[Video Player>>http://www.longtailvideo.com/support/jw-player/jw-player-for-html5]] |
| |
51.1 | 47 | |
| |
63.1 | 48 | Support for the file upload widget has been implemented as an input and as a CSS style-able container. |
| |
51.1 | 49 | |
| |
81.1 | 50 | = Embrace Statelessness = |
| |
65.1 | 51 | |
| 52 | {{include value="WO:Embrace Statelessness"}}{{/include}} | ||
| 53 | |||
| |
81.1 | 54 | ERJQuery embraces the stateless model Ajax offers in exchange for simplifying the work WebObjects has to do - it's a win-win |
| |
65.1 | 55 | |
| |
71.1 | 56 | So you may observe one notable difference between ERJQuery and the Ajax framework is in the way it handles ajax responses. |
| |
73.1 | 57 | In ERJQuery, updates and actions break with standard WebObjects behaviour by being pseudo-stateless just like [[ERPrototaculous]]. |
| |
65.1 | 58 | |
| |
51.1 | 59 | == Compatibility == |
| 60 | |||
| 61 | 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. | ||
| 62 | |||
| 63 | {{warning title="ERJQuery is WebObjects *5.4* compatible only"}} | ||
| 64 | |||
| 65 | |||
| 66 | {{/warning}} | ||
| |
91.1 | 67 | |
| 68 | == External Links == | ||
| 69 | |||
| 70 | WOWODC '10 (Slides) - [[DirectToWeb 2.0>>http://www.wocommunity.org/wowodc10/slides/D2W2.pdf]] |