Connection Manager - Yahoo Does AJAX

The YUI Connection Manager simplifies AJAX-style interaction between a browser-based application and the web server. There are many competing JavaScript libraries that do the same thing, so the main advantage of this version is that it's integrated with the other YUI components and has been tested to Yahoo's standards.

In this example, clicking on the button triggers a behind-the-scenes request to the web server for an article from Baseline's archives. A "callback" function written in JavaScript defines what to do with the data returned from the server. In this case, the callback function simply displays the HTML content along with the server status code and the title of the document. But the callback can also process or transform the data. For example, a financial analysis application might retrieve an XML-formatted data set and display a graph based on a results of a series of calculations, rather than the raw data itself.

Topics

Introduction
Background: HTML, CSS, and JavaScript
Connection (AJAX)
Navigation Menu
Tabs
Animation
More Animation
Drag & Drop
Form Controls
Slider
Dialog
More

Advertisement