close

Вход

Забыли?

вход по аккаунту

?

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
Документ
Категория
Без категории
Просмотров
5
Размер файла
98 Кб
Теги
1/--страниц
Пожаловаться на содержимое документа