更新时间:2021-08-05 16:12:25
封面
版权页
Credits
About the Authors
About the Reviewers
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Chapter 1. Getting Started with YUI
What is the YUI?
What comes with the YUI?
Installing the YUI
Using the library files in your own web pages
Code placement
Perfect date selection with the Calendar Control
Implementing a Calendar
Summary
Chapter 2. Creating Consistency with the CSS Tools
Tools of the trade
Element normalization with reset.css
First base
Tidying up text with fonts.css
Layout pages with ease using grids.css
A word on Sam
Chapter 3. DOM Manipulation and Event Handling
Working with the DOM
Common DOM scripting techniques
DOM manipulation in YUI
The Selector Utility
Listening for Events the easy (YUI) way
Event models
YUI event capturing
A look at the Event Utility
Custom events
The Element Utility
Chapter 4. Calling Back Home
Introduction to Connection Manager
The XMLHttpRequest object interface
A closer look at the response object
The Callback object
Basic communication
Yahoo Query Language (YQL)
Chapter 5. Animation the Browser History Manager and Cookies
Introducing the Animation Utility
Using Animation to create an Accordion Widget
Restoring the browser's expected functionality
Cookies
Chapter 6. Content Containers and Tabs
Meet the YUI Container family
Creating a Panel
Before we go on
Working with Dialogs
An "Are you sure?" SimpleDialog
Easy Tooltips
The YUI TabView Control
Adding tabs
Chapter 7. Menus
Common navigation structures
Instant menus—just add water (or a Menu Control)
The Menu classes
Creating a basic navigation menu
Using the ContextMenu
The application-style MenuBar
Chapter 8. Buttons and Trees
Why use the YUI Button family?
Meet the Button Control
Using the Button Control
Using the Split Button type
Tree-like structures with the TreeView Control
Planting the seed
Chapter 9. DataSource and AutoComplete
Tabular data sources
Look ahead with the AutoComplete Control
Implementing AutoComplete
Chapter 10. DataTable
DataTable dependencies
DataTable classes
Creating a DataTable
Chapter 11. Rich Text Editor
The two editors
A simple e-mail editor
Chapter 12. Drag-and-Drop with the YUI
Dynamic drag-and-drop without the hassle
DragDrop classes
Implementing drag-and-drop
Visual selection with the slider control