Ajax and WebObjects (2)

Pierce T. Wetter III has just posted an outstanding tour de force overview of using AJAX with WebObjects to the webobjects-dev list.

Myth: Rails is a better framework for Ajax then WO.

Reality: WebObjects is actually a better framework for use with AJAX then Rails because it has a better component system then Rails. You spend a lot of time coding little tiny XML and HTML generators when doing Ajax and WO’s component system makes that very DRY (Don’t Repeat Yourself).

Myth: WebObjects is hard to use with Ajax.

Reality: WebObjects is easy to use with Ajax, its just that there is only one known library for Ajax-WO support, and its not well documented. Even then the library only goes so far in that it just provides new components to wrap a few script.aculo.us tags. I think its more of a documentation gap, not a code gap.

I’m all for plugging that "documentation gap".

Update: Mike Schrag added Pierce’s post to the Programing WebObjects Wiki Book.

AJAX and WebObjects

AJAX (in case you’ve been living under a rock) is Asynchronous Javascript And XML (but in reality it is really a grab bag of technologies) and is one of the key elements of the whole Web 2.0 thing.

AJAX is usually used to improve the user experience for web applications. Using XHTTPRequest, client-side Javascript can communicate with the server minimizing the number of page refreshes necessary to perform a given task. This is usually coupled with Javascript/DOM scripting that provides richer and/or more intuitive UI elements.

Ruby on Rails leads the AJAX charge with outstanding support out of the box. And given the incredible hype surrounding Ruby on Rails, you could be forgiven for thinking that if you wanted to use AJAX, you’d pretty much have to use R-on-R.

Thankfully for old WebObjects developers like myself, that is not the case.

Using the Metaparadigm JSON-RPC bridge Jean-François Veillette built a framework that provides AJAX support for WebObjects applications and released it into the wild. Anjo Krank wonderized that and included it in ProjectWONDER and Mike Schrag has done some great work extending it by adding additional components.

I built a small application using the Ajax.Framework from ProjectWONDER and demoed it at the last tacow meeting. You can get it here.

Whoo hoo!

I’ve used Timbuktu for controlling remote machines for years. The one feature that I really miss from TB2 when I’m working with Apple Remote Desktop is the ability to share the clipboard between machines.

I finally got my hands on a copy of ARD 3 (which was released a while back). Pleased as punch, I was, to see this:

ARDClipboardSharing.jpg

Yup. Clipboard sharing between client and admin machines.

Happy now.

Posted in it