Using YUI for Ajax and More

код для вставки на сайт или в блог

ссылки на документ

Using YUI for Ajax and More
Chapter 19
Choosing a Framework
п‚¤ choosing among the bewildering variety of frameworks
Framework for this chapter
п‚¤ YUI http://developer.yahoo.com/yui
п‚¤ download the entire framework and an extensive
collection of more than 300 example programs, along
with a comprehensive amount of documentation,
amounting to over 70 MB of data once uncompressed
Using YUI for Ajax
п‚¤ XMLHttpRequest objects to provide Ajax connectivity
between the web browser, a server, and a third-party
server
п‚¤ YUI, handling Ajax becomes a whole lot easier
Including the framework files
п‚¤ yahoo-min.js
п‚¤ The main YUI file, generally required
п‚¤ event-min.js
п‚¤ The event handling framework file, used here for the
callback
п‚¤ connection-min.js
п‚¤ The Ajax handling framework file
The YUI asyncRequest method
п‚¤ call asyncRequest, YahooвЂ™s version of the ajaxRequest
function we created in the last chapter
п‚¤ YAHOO.util.Connect.asyncRequest('method', 'url',
callback [, 'parameters...'])
An Ajax GET example using YUI
п‚¤ Example 19-1. yuiurlget.html
п‚¤ An Ajax XML example using YUI
п‚¤ Example 19-2. yuixmlget.html
п‚¤ A Simple YUI Calendar