2008年(1655)
分类: LINUX
2008-05-28 17:41:25
Learning the Yahoo! User Interface Library introduces the popular open-source YUI JavaScript library and takes the user through each of the fully released components in detail looking at the classes that make up each component and the properties and methods that can be used. It includes a series of practical examples to reinforce how each component should/can be used. Author Dan Wellman takes the reader from beginner to advanced-level YUI usage and understanding.
In Detail
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. The YUI Library also includes several core CSS resources. All components in the YUI Library have been released as open source under a BSD license and are free for all uses.
This book covers all released components whether utility, control, core file, or CSS tool. Methods of the YAHOO Global Object are used and discussed throughout the book.
The basics of each control will be presented, along with a detailed example showing its use to create complex, fully featured, cross-browser, Web 2.0 user interfaces.
Besides giving you a deep understand of the YUI library, this book will expand your knowledge of object-oriented JavaScript programming, as well as strengthen your understanding of the DOM and CSS.
You will learn to create a number of powerful JavaScript controls that can be used straight away in your own applications.
What you will learn from this book
a、Explore the YUI Library—utilities, controls, core files, and CSS tools
b、Install the library and get up and running with it
c、Handle DOM manipulation and scripting
d、Get inside Event Handling with YUI
e、Create consistent web pages using YUI CSS tools
f、Work with Containers—implementation, skinning, adding transitions, and tabs
g、Debug, maintain, and update applications with the Logger control
h、Examples included in the book:
Calendar interface
Autocomplete
Creating panels
Dialogs
Custom tooltips
Forms
Split button
TreeView Control
Browser History Manager with Calendar
Simple animation
Custom animation
Creating tabs and adding content dynamically
Dragging and dropping
Implementing sliders
Logger at work
Logging custom classes
Approach
The book is a tutorial, leading the reader first through the basics of the YUI library before moving on to more complex examples involving the YUI controls and utilities. The book is heavily example driven, and based around an approach of tinkering and extending to improve.
Who this book is written for
This book is for web developers comfortable with JavaScript and CSS, who want to use the YUI library to easily put together rich, responsive web interfaces. No knowledge of the YUI library is presumed.