Yahoo User Interface Library 2.x Cookbook

More Information
  • Understand how YUI 2.x works and what features are available
  • Understand how YUI components interact with the DOM, and why
  • Effortlessly search the DOM and listen for end-user events
  • Simplify retrieving server-side data using AJAX and DataSource
  • Learn how to load your scripts and CSS on demand
  • Create sophisticated HTML-based panels, tooltips, and dialogs
  • Make interactive inputs with AutoComplete
  • Harness the power of drag and drop for your UI
  • Build sortable, dynamic tables using DataTable
  • Design richer user interfaces using YUI buttons and menus
  • Show data hierarchies using the TreeView
  • Explore some of the more recent beta components
  • Take control of your UI as you master YUI 2.x



The Yahoo! User Interface (YUI) Library is a set of utilities and controls, written in JavaScript, for building richly interactive web applications using techniques such as DOM scripting, DHTML, and AJAX. Although you can create stylish Internet applications by modifying its default components, even advanced users find it challenging to create impressive feature-rich Internet applications using YUI.

This book will help you learn how to use YUI 2.x to build richer, more interactive web applications that impress clients and wow your friends. It has recipes explaining over twenty-five YUI components, showing how to use them, and how to configure them to meet your needs. Each covered component will have extractable code samples that showcase the common ways that the component is used.

The book starts by explaining the core features of YUI 2.x, the utilities that the rest of the library depends on and that will make your life easier. It then explains how to build UI components and make AJAX requests using the YUI framework. Each recipe will cover the most common ways to use a component, how to configure it, and then explain any other features that may be available. We wrap things up by looking at some of the recent beta components and explain how to use them, and how they may be useful on your web application.

For each of the recipes, there is an introductory example, then more advanced examples, followed by an explanation of how the component works and what YUI is doing. For more experienced developers, most recipes also include additional discussion of the solution, explaining to further customize and enhance the component.

  • Easily develop feature-rich internet applications to interact with the user using various built-in components of YUI library
  • Simple and powerful recipes explaining how to use and implement YUI 2.x components
  • Gain a thorough understanding of the YUI tools
  • Plenty of example code to help you improve your coding and productivity with the YUI Library
  • Hands-on solutions that takes a practical approach to recipes
Page Count 436
Course Length 13 hours 4 minutes
ISBN 9781849511629
Date Of Publication 6 Jan 2011


Matt Snider

Matt Snider is a software engineer and JavaScript enthusiast. He has built various web applications from the ground up, since 2003, but has maintained a passion for the UI. He quickly discovered YUI because of its early adoption, great documentation, and strong open-source community. Matt currently maintains a blog dedicated to web application development, leads the UI team at, and authored the YUI 2.x Storage Component. In the near future, he plans to port the Storage component to YUI 3. Examples of his work can be found on his personal website