Wiki source code of ERPrototaculous

Version 249.1 by Ravi Mendis on 2009/07/16 09:03

Show last authors
1 == Introduction ==
2
3 ERPrototaculous was developed to provide the ajax functionality in ERDivaLook.
4
5 === What is ERPrototaculous? ===
6
7 Features include:
8
9 * 'Organic' support for Prototype and Scriptaculous in WebObjects.
10 * No custom Prototype extensions
11 * A set of widgets in the Prototype + Scriptaculous family.
12 * Use of [[Unobtrusive Javascript>>http://en.wikipedia.org/wiki/Unobtrusive_JavaScript]].
13 * Virtually stateless ajax responses
14
15 ==== Unobtrusive Javascript in ERPrototaculous ====
16
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.
19
20 The result is **faster** and more **reliable** ajax in WebObjects applications.
21
22 ==== Prototype + Scriptaculous Widgets ====
23
24 * Accordion
25 * LightWindow
26 * ModalBox
27 * CalendarDateSelect
28 * FileUpload
29
30 == Forms in ERPrototaculous ==
31
32 Differences from using forms in WebObjects. i.e ##WOForm##:
33
34 * All form controls must be named. This includes text fields, selects and buttons.
35 (WebObjects dynamically assigned names are not compatible with ERPrototaculous).
36 * All forms in an ERPrototaculous app are instances of ##AjaxUpdaterForm##.
37 * Form submits can be the form of a:
38 ** Static ##<button>##
39 ** WOSubmitButton (if the result is to update whole page/app.
40 ** AjaxUpdaterButton (to update a **container**). Or
41 ** AjaxRequestButton (for a background ajax request)