1 / 7

Choosing the Right Framework: An In-Depth Guide to YUI for Ajax Integration

Chapter 19 of our guide explores the complexities of selecting a suitable framework for web development, focusing on the Yahoo User Interface (YUI) framework. It highlights YUI’s capabilities for Ajax connectivity through XMLHttpRequest objects, making web interactions seamless between browsers and servers. The chapter provides insights into essential framework files like yahoo-min.js and connection-min.js, alongside practical examples of using YUI for Ajax GET requests and XML data handling. Download over 70 MB of documentation and examples to enhance your learning.

brian-ortiz
Télécharger la présentation

Choosing the Right Framework: An In-Depth Guide to YUI for Ajax Integration

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