jQuery 2 Recipes [electronic resource] : A Problem-Solution Approach /
Pande, Arun.author.
jQuery is often referred to as the 'write less, do more' JavaScript library. It allows a few clear lines of elegant, well-tested, code to replace many pages of complex hand-coded script, speeding development times and providing substantial cost savings. You will find jQuery 2 Recipes' problem-solution approach to be an excellent value and a feature-packed resource as you begin to include jQuery in your own projects. This book is bursting with fully-worked example recipes showing the core jQuery frameworks (jQuery, jQuery Mobile, jQuery UI) in action. Starting with fundamental principals and progressing to more advanced topics you'll be shown how to make the very best use of jQuery every step of the way. Early on, you'll learn to work confidently with dynamic data and to handle the jQuery events that form the foundation of your application. We'll then build on this foundation to demonstrate how fully working user-interface animations and AJAX data-validation can be constructed within jQuery. We'll show how add-on libraries like jQwidgets can be deployed to create professional quality apps for both the desktop and web with minimal coding. Finally, a full set of debugging and error-handling recipes is included to help you track down bugs and ensure your code is as robust as it can be.
Contents at a Glance; Contents; About the Author; About the Technical Reviewer; Acknowledgments; Chapter 1: Introduction; 1-1. About jQuery 2.0; 1-2. Migration Plan; 1-3. Objects-Basic Concept; 1-4. Introduction to JavaScript; 1-4-1. Data Types; 1-4-2. Commonly Used JavaScript Objects and Events; 1-5. About XML; 1-6. About JSON; 1-7. Introduction to Web Services; 1-7-1. SOAP Web Services; 1-7-2. RESTful Web Services; 1-8. About jQuery UI; 1-9. About jQueryMobile; 1-10. Introduction to jqWidgets; 1-12. About Eclipse IDE; Summary; Chapter 2: jQuery Fundamentals; 2-1. Setting Up jQuery
Setting Up the Development Environment2-2. Using Conditional Statements; if...else Statements; if ... if else ... else Statements; switch Statements; 2-3. Looping; for Loops; while Loops; 2-4. Understanding the Document Object Model (DOM); The DOM Structure; 2-5. Navigating the DOM; 2-6. Using Attributes vs. Properties; 2-7. Commonly Used Objects in jQuery; Map Object; HTML Element; jQuery Objects; 2-8. Using the jQuery Function; jQuery Function Arguments; The jQuery Function with the Function as an Argument; The jQuery Function with the Selector as an Argument
The jQuery Function with the HTMLElement as an ArgumentThe jQuery Function with the HTMLString as an Argument; 2-9. jQuery Methods Chaining; Summary; Chapter 3: jQuery Selectors; 3-1. Examples; 3-1-1. Human Resources Example; 3-1-2. Publishing House Example; 3-1-3. Photo Album Example; 3-2. Selecting the HTML Element by its ID; Problem; Solution; How It Works; 3-3. Selecting All the HTML Elements on a Page; Problem; Solution; How It Works; 3-4. Selecting an HTML Element by ID to Highlight All Child Nodes; Problem; Solution; How It Works; 3-5. Selecting HTML Elements by Tag Name; Problem
SolutionHow It Works; 3-6. Selecting HTML Elements by Tag Name to Highlight a Focused Field; Problem; Solution; How It Works; 3-7. Selecting HTML Elements by Class Name; Problem; Solution; How It Works; 3-8. Selecting HTML Elements that Match Any of the Specified Multiple Selectors; Problem; Solution; How It Works; 3-9. Selecting HTML Elements with an Attribute's Value Starting with a Specified Value Followed by a Hyphen; Problem; Solution; How It Works; 3-10. Selecting HTML Elements with the Attribute's Value Containing a Specified Value as a Word (Separated by Spaces); Problem; Solution
How It Works3-11. Selecting HTML Elements that Have a Specified Attribute Regardless of its Value; Problem; Solution; How It Works; 3-12. Selecting the n th Item from the Selected HTML Elements; Problem; Solution; How It Works; 3-13. Selecting Even and Odd Numbered Items from the Matched HTML Elements; Problem; Solution; How It Works; 3-14. Selecting All Elements up to n th Element from the Matched HTML Elements; Problem; Solution; How It Works; 3-15. Selecting All Header HTML Elements; Problem; Solution; How It Works
3-16. Selecting the First and/or Last Element from the Selected HTML Elements
Includes index.
jQuery is often referred to as the 'write less, do more' JavaScript library. It allows a few clear lines of elegant, well-tested, code to replace many pages of complex hand-coded script, speeding development times and providing substantial cost savings. You will find jQuery 2 Recipes' problem-solution approach to be an excellent value and a feature-packed resource as you begin to include jQuery in your own projects. This book is bursting with fully-worked example recipes showing the core jQuery frameworks (jQuery, jQuery Mobile, jQuery UI) in action. Starting with fundamental principals and progressing to more advanced topics you'll be shown how to make the very best use of jQuery every step of the way. Early on, you'll learn to work confidently with dynamic data and to handle the jQuery events that form the foundation of your application. We'll then build on this foundation to demonstrate how fully working user-interface animations and AJAX data-validation can be constructed within jQuery. We'll show how add-on libraries like jQwidgets can be deployed to create professional quality apps for both the desktop and web with minimal coding. Finally, a full set of debugging and error-handling recipes is included to help you track down bugs and ensure your code is as robust as it can be.
Computer programming.
Software engineering.
Web Development.
Software Engineering/Programming and Operating Systems.