Changes for page ERPrototaculous
Last modified by Ravi Mendis on 2010/11/18 05:07
From version 280.1
edited by Ravi Mendis
on 2009/07/16 10:03
on 2009/07/16 10:03
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -7,17 +7,20 @@ 7 7 Features include: 8 8 9 9 * 'Organic' support for Prototype and Scriptaculous in WebObjects. 10 +** Light-weight dynamic elements to support Prototype 11 +** No custom patches to Prototype 12 +** Sans the need to extend Prototype 10 10 * Use of [[Unobtrusive Javascript>>http://en.wikipedia.org/wiki/Unobtrusive_JavaScript]]. 11 11 * Pseudo-stateless ajax responses 12 -* No custom Prototype extensions 13 13 * A set of widgets in the Prototype + Scriptaculous family. 14 14 15 15 ==== Unobtrusive Javascript in ERPrototaculous ==== 16 16 17 17 Unobtrusive javascript is used in contrast to on-demand style of ajax programming. 18 -By including Javascript as well as CSS globally in the page wrapper, CSS and/or Javascript doesn't have to load inside ajax requests. 20 +By including Javascript as well as CSS globally in the page wrapper, CSS and Javascript don't have to load inside each and every ajax requests. 21 +This keeps the ajax responses compact and granular. 19 19 20 -The result is **faster** and more **reliable** ajax in WebObjects applications.23 +The result is **faster** and more **reliable** ajax in WebObjects. 21 21 22 22 ==== Prototype WebObjects Elements ==== 23 23 ... ... @@ -60,10 +60,10 @@ 60 60 1. Form submits can be the form of a: 61 61 62 62 * 63 -** Static ##<button>## 64 -** WOSubmitButton (if the result is to update whole page/app. 66 +** Static ##<button>##. 67 +** WOSubmitButton (if the result is to update whole page/app). 65 65 ** AjaxUpdaterButton (to update a **container**). Or 66 -** AjaxRequestButton (for a background ajax request) 69 +** AjaxRequestButton (for a **background** ajax request). 67 67 68 68 == Ajax Page Caching in ERPrototaculous == 69 69 ... ... @@ -74,3 +74,10 @@ 74 74 75 75 The reason returning a fresh response is not necessary is because a client never travels back or forwards through an ajax application unlike in a typical WebObjects app. 76 76 Here the current state of the update or action is all that is necessary. 80 + 81 +== Actions in ERPrototaculous == 82 + 83 +Typically, in a WebObjects application, an action would return the contents of the entire page. 84 + 85 +Ajax responses are typically page fragments or part of a page. 86 +So you should make sure the actions in ERPrototaculous (or AjaxUpdaterButton and AjaxRequestButton) return the proper page fragment as opposed to the entire page. This breaks with WO-tradition, so this is where you need to turn your attention to.