Beyond jQuery
This book gives you the confidence to abandon your jQuery crutches and walk freely with the power of the web API and JavaScript. Learn about the most important concepts surrounding web development as we demystify jQuery. Beyond jQuery doesn't just throw code at you - everything is explained in...
Main Author: | |
---|---|
Format: | eBook |
Language: | English |
Published: |
[New York]
Apress
2016
|
Subjects: | |
Online Access: | |
Collection: | O'Reilly - Collection details see MPG.ReNa |
Table of Contents:
- Reading AttributesModifying Attributes; Chapter 6: HTML Element Data Storage and Retrieval; Why Would You Want to Attach Data to Elements?; Tracking State; Connecting Elements; Storing Models Directly in Your Elements; Common Pitfalls of Pairing Data with Elements; Memory Leaks; Managing Data; Using a Solution for All Browsers; Storing Small Bits of Data Using data- Attributes; Reading and Updating data- Attributes with jQuery; Using the Web API to Read and Update data- Attributes; Complex Element Data Storage and Retrieval; The Familiar jQuery Approach; Using a More Natural Approach
- When Is It Acceptable to Use It?When Should You Refrain from Using It?; Should You Use Other Libraries Instead?; Small Shims Over Large Wrappers; Writing Your Own Shim; The Final Word; Chapter 3: Understanding the Web API and "Vanilla" JavaScript; Everything You Need to Know About Browsers; Ancient Browsers; Modern Browsers; Evergreen Browsers; Mobile Browsers; Non-browsers; What Is This Web API and Why Is It Important?; The DOM API; Everything Else (non-DOM); JavaScript: A Less Elegant Version of jQuery?; The Language vs. the Web API; History and Standardization
- History and StandardizationHow Do Attributes Differ from Properties?; Finding Elements Using Attributes; Finding Elements Using Attribute Names; jQuery; Web API; Finding Elements Using Attribute Names and Values; jQuery; Web API; The Power of Wildcard and Fuzzy Attribute Selectors; Looking for Specific Characters; Looking for Specific Words; Attribute Values That Start or End With . . .; Reading and Modifying Element Attributes; Class Attributes; Reading Classes; Adding and Removing Classes; Toggling Classes; Data Attributes; Working with Other Standard and Custom Attributes
- At a Glance; Contents; About the Author; Preface; Acknowledgments; Introduction; Chapter 1: The Oppressive Magic of jQuery; Why Have We Been Using jQuery?; Simplicity; Community; Habit; Elegance; Fear; A Crutch Is Only Temporary; You Are a Mechanic, Not a Driver; Stunted Growth; The Price of Shortcuts (a True Story); A New Direction, a New Web Developer; Shortcuts and My Own Stunted Growth; A Challenge: No jQuery Allowed!; Focus on the Implementation, Not the Magic; Chapter 2: You Don't Need jQuery (Anymore); Need vs. Want; Both Sides of the Acceptable Use Argument
- Chapter 4: Finding HTML ElementsCore Element Selectors; IDs; jQuery; Web API; Classes; jQuery; Web API; Element Tags; jQuery; Web API; Pseudo-classes; jQuery; Web API; Selecting Elements Based on Their Relations; Parents and Children; jQuery; Web API; Siblings; jQuery; Web API; Ancestors and Descendants; jQuery; Web API; Mastering Advanced Element Selection; Excluding Elements; jQuery; Web API; Multiple Selectors; jQuery; Web API; Element Categories and Modifiers; A Simple Replacement for (selector); Chapter 5: Using and Understanding HTML Element Attributes; What Is an Attribute?