Cargando…

YUI 2.8 Learning the Library.

Develop your next-generation web applications with the YUI JavaScript development library.

Detalles Bibliográficos
Clasificación:Libro Electrónico
Autor principal: Barreiro, Daniel
Otros Autores: Wellman, Dan
Formato: Electrónico eBook
Idioma:Inglés
Publicado: Birmingham : Packt Pub., 2010.
Temas:
Acceso en línea:Texto completo
Tabla de Contenidos:
  • YUI 2.8 Learning the Library; YUI 2.8 Learning the Library; 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; Errata; Piracy; Questions; 1. Getting Started with YUI; What is the YUI?; Who is it for and who will it benefit the most?; Why the Yahoo! User Interface Library?; Graded browser support; What comes with the YUI?; The library topography; The core files; The Utilities; The Controls; The CSS Tools; The developer tools; The library's structure.
  • What else does Yahoo! provide?Are there any licensing restrictions?; Installing the YUI; Creating an offline library repository; Using the library files in your own web pages; Code placement; Perfect date selection with the Calendar Control; The basic Calendar class; The CalendarGroup class; Implementing a Calendar; The initial HTML page; Highly eventful; The DateMath class; Summary; 2. Creating Consistency with the CSS Tools; Tools of the trade; Element normalization with reset.css; Element rules; First base; Tidying up text with fonts.css; Layout pages with ease using grids.css.
  • Setting up your page structureThe basic building blocks of your pages; Grid nesting; A word on Sam; Summary; 3. DOM Manipulation and Event Handling; Working with the DOM; DOM concepts; Common DOM scripting techniques; Common DOM methods; Further reading; DOM-the old way; DOM-the YUI way; DOM manipulation in YUI; Many DOMs make light work; The Dom class; Using the Dom class; The Region class; Additional useful Dom methods; Other classes; The Selector Utility; Listening for Events the easy (YUI) way; Event models; Old-styled events; YUI event capturing; Evolving event handlers.
  • Reacting when appropriateA look at the Event Utility; Listeners; Event delegation; Other plugins; Custom events; The evolution of Custom Events; EventProvider; Custom event basics; The Element Utility; Subclassing from Element; Adding custom methods and properties; Using AttributeProvider; Summary; 4. Calling Back Home; Introduction to Connection Manager; The XMLHttpRequest object interface; A closer look at the response object; The Callback object; Basic communication; Sending forms; Posting; Yahoo Query Language (YQL); Overcoming the XDS restriction; Working with XML.
  • Processing a JSON replyUsing JSONP with the Get utility; Loading library components via Get; Summary; 5. Animation, the Browser History Manager, and Cookies; Introducing the Animation Utility; The class structure of the Animation Utility; The Animation constructor; Animation's attributes; Custom Animation events; The subclasses; Additional classes; Using Animation to create an Accordion Widget; Listening to the end of the Animation; The CSS for Accordion; Using Element; Dealing with motion; Restoring the browser's expected functionality; The BHM class; Using BHM; The BHM script; Cookies.