1 / 7

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

brian-ortiz
Download Presentation

Using YUI for Ajax and More

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Using YUI for Ajax and More Chapter 19

  2. Choosing a Framework • choosing among the bewildering variety of frameworks

  3. 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

  4. 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

  5. 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

  6. The YUI asyncRequest method • call asyncRequest, Yahoo’s version of the ajaxRequestfunction we created in the last chapter • YAHOO.util.Connect.asyncRequest('method', 'url', callback [, 'parameters...'])

  7. 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

More Related