Doing AJAX with popular javascript libraries

Ruby on Rails

Let me first confess that I have only few hours of experience with ruby. And even less with Rails. But I could somehow manage to try out and
put some code here. Rails like ASP.NET is a web development framework. Its becoming very popular these days. There are ways in which AJAX can be done with lesser pain in Rails. Code for simplest AJAX functionality is shown below, it resides in the *.rhtml files :