Changes for page ERJQuery

Last modified by Ravi Mendis on 2010/11/30 05:16

From version 98.1
edited by Ravi Mendis
on 2010/07/13 05:11
Change comment: There is no comment for this version
To version 99.1
edited by Ravi Mendis
on 2010/11/30 05:16
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -1,56 +1,67 @@
1 1  == What is ERJQuery? ==
2 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.
3 +ERJQuery is an alternative, //pseudo-stateless// Ajax framework for WebObjects applications.
4 + It's is a [[jQuery>>url:http://jquery.com/||shape="rect"]] version of [[doc:ERPrototaculous]].
5 + ERJQuery and [[doc:ERPrototaculous]] are mutually exclusive frameworks. In other words, you may only use one or the other.
6 6  
7 7  Features include:
8 8  
9 -* 'Organic' support for [[jQuery>>http://jquery.com/]] in WebObjects.
9 +* 'Organic' support for [[jQuery>>url:http://jquery.com/||shape="rect"]] in WebObjects.
10 10  ** Light-weight dynamic elements to support jQuery
11 11  ** Transparent API that doesn't hide or abstract jQuery
12 12  ** Sans patches or extensions to jQuery
13 -* Use of [[Unobtrusive Javascript>>http://en.wikipedia.org/wiki/Unobtrusive_JavaScript]].
13 +* Use of [[Unobtrusive Javascript>>url:http://en.wikipedia.org/wiki/Unobtrusive_JavaScript||shape="rect"]].
14 14  * Pseudo-stateless ajax responses
15 15  * A set of jQuery widgets.
16 16  
17 -Ajax actions and update containers are handled just like [[ERPrototaculous]] except they use jQuery instead of Prototype and Scriptaculous.
17 +Ajax actions and update containers are handled just like [[doc:ERPrototaculous]] except they use jQuery instead of Prototype and Scriptaculous.
18 18  
19 19  ==== Unobtrusive JavaScript in ERJQuery ====
20 20  
21 -{{include value="WO:Using Unobtrusive JavaScript"}}{{/include}}
21 +{{include 0="WO:Using Unobtrusive JavaScript"/}}
22 22  
23 +{{code}}
24 +
25 +er.jquery.useUnobtrusively = true
26 +
27 +{{/code}}
28 +
23 23  ==== jQuery WebObjects Elements ====
24 24  
25 -//jQuery.get()// has been implemented as a WebObjects dynamic element.
31 +//jQuery.get()// has been implemented as a WebObjects dynamic element. Currently support for [[jQuery.get()>>url:http://api.jquery.com/jQuery.get/||shape="rect"]] and [[.load()>>url:http://api.jquery.com/load/||shape="rect"]] is limited to the following:
26 26  
27 27  ===== jQuery.get() =====
28 28  
29 -Currently support for [[jQuery.get()>>http://api.jquery.com/jQuery.get/]] is limited to the following:
30 -
31 31  * jQueryGetLink
32 32  
37 +===== jQuery.load() =====
38 +
39 +* jQueryLoadLink
40 +
33 33  ==== jQuery Widgets ====
34 34  
35 -* [[FileUpload>>http://valums.com/ajax-upload/]]
36 -* [[Video Player>>http://www.longtailvideo.com/support/jw-player/jw-player-for-html5]]
43 +(% class="alternate" %)
44 +* [[FileUpload>>url:http://valums.com/ajax-upload/||shape="rect"]]
45 +* [[Video Player>>url:http://www.longtailvideo.com/players/jw-flv-player||shape="rect"]]
46 +* [[Tweet Button>>url:http://twitter.com/about/resources/tweetbutton||shape="rect"]]
37 37  
38 38  Support for the file upload widget has been implemented as an input and as a CSS style-able container.
39 39  
40 -= Embrace Statelessness =
50 += Embrace Statelessness! =
41 41  
42 -{{include value="WO:Embrace Statelessness"}}{{/include}}
52 +{{include 0="WO:Embrace Statelessness"/}}
43 43  
44 -ERJQuery embraces the stateless model Ajax offers in exchange for simplifying the work WebObjects has to do - it's a win-win
54 +ERJQuery embraces the stateless model Ajax offers in exchange for simplifying the work WebObjects has to do - it's a win-win!
45 45  
46 46  So you may observe one notable difference between ERJQuery and the Ajax framework is in the way it handles ajax responses.
47 -In ERJQuery, updates and actions break with standard WebObjects behaviour by being pseudo-stateless just like [[ERPrototaculous]].
57 + In ERJQuery, updates and actions break with standard WebObjects behaviour by being pseudo-stateless just like [[doc:ERPrototaculous]].
48 48  
49 49  == Compatibility ==
50 50  
51 51  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.
52 52  
53 -{{warning title="ERJQuery is WebObjects *5.4* compatible only"}}
63 +{{warning title="ERJQuery is WebObjects *5.4* compatible only"/}}
54 54  
65 +== External Links ==
55 55  
56 -{{/warning}}
67 +WOWODC '10 (Slides) - [[DirectToWeb 2.0>>url:http://www.wocommunity.org/wowodc10/slides/D2W2.pdf||shape="rect"]]