Wiki source code of Development-Ajax

Version 13.1 by Pascal Robert on 2012/07/19 21:13

Show last authors
1 == Overview ==
2
3 Ajax (Asynchronous Javascript and XML) is a methodology of web programming based on Javascript code that makes requests to a webserver in the background of the page, and uses DHTML to provide on-the-fly updates without a full page refresh. The fundamentals of the request-response process are identical to that of a normal request, but to the end-user of your applications, you can create a web experience that is much closer to that of a native app.
4
5 While WebObjects has not been traditionally known for its Ajax support, the framework provides all of the groundwork necessary to build Ajax components and actions.
6
7 == Ajax with DirectActions ==
8
9 Pierce T. Wetter III has written an extensive [[an excellent article>>WO:Alternative Technologies-Ruby on Rails]] comparing Ajax support in Ruby on Rails and Webobjects. In his article, he also provides examples of how one might integrate some of the popular Ajax libraries with WebObjects using Direct Actions.
10
11 == Ajax framework ==
12
13 If you would like to get up-and-running more quickly, [[Project Wonder>>WONDER:Home]] provides an [[Ajax framework>>Ajax Framework]] (called, of course, Ajax.framework), which provide support for many common Ajax techniques like sliders, drag-and-drop, updatable areas, etc. For the base Ajax framework, there are no dependencies on any other frameworks in Project WOnder, so it's a great place to test the waters.
14
15 == Ajax request handler ==
16
17 If for any reasons you can't/don't use the Ajax framework or DirectActions, WebObjects 5.4 have support for a Ajax request handler that can help you handle Ajax requests. Check CodeFab [[presentation>>http://wocommunity.org/podcasts/wowodc/west08/WOWODC08_PlainAJAX.mp4]] from WOWODC 2008 for more details.
18
19 == Related Reading ==
20
21 * [[Ruby on Rails>>WO:Alternative Technologies-Ruby on Rails]]
22 * [[Wikipedia Ajax Entry>>http://en.wikipedia.org/wiki/Ajax_(programming)]]
23 * [[Prototype Javascript library>>http://prototype.conio.net/]]
24 * [[Scriptaculous Javascript library>>http://script.aculo.us/]]