Tuesday, March 22nd, 2005
This is done by off-loading the creation of DOM elements to the server side, which returns complete constructs that are then injected live through innerHTML. While this method is slightly more verbose than just peddling data across the wire, it’s immensely easier to develop.
And especially the ease of development is critical to the success of Ajax. I used the old style of hand-crafting the DOM on the client-side with Ta-da List and was quite disillusioned at the mess of browser differences and the sheer effort it took. Basically, each sliver of Ajax was a project in itself.
With Honey, though, I’ve been all over the new Ajax style that Rails affords. And what a difference it makes! It’s basically no harder to make something Ajaxed than it is not to, which means that the decision is based on whether its a good fit for the user interface â€” not on whether we have time to another Ajax project.
It is indeed very cool how they have taken out the need to really WRITE dHTML in your apps.
Read more about this release at: Rails 0.11.0: Ajax, Pagination, Non-vhost, Incoming mail
Check out the movie, which shows you how to setup a form to use Ajax in Rails.
Posted by Dion Almaer at 12:52 pm