Open source JavaScript library that includes its own Ajax tools

The hacks use Prototype, a cool open source JavaScript library that includes its own Ajax tools. You’ll see how to update DOM elements in a web page with server data using Prototype’s Ajax.Updater object, and how to use the PeriodicalExecuter object to execute Ajax requests at timed intervals while another “observer” object monitors a text field for changes (imagine: a user enters data into text fields, and a JavaScript object automatically sends the data off to persistent server storage whenever the field value changes). Another hack in this chapter uses the open source library Rico in a Weather.com web services application. Hack sets up a drag-and-drop bookstore, also using Rico.

Leave a Reply