Learning jQuery 3 - Fifth Edition

Create efficient and smart web applications with jQuery 3.0 using this step-by-step practical tutorial

Learning jQuery 3 - Fifth Edition

This ebook is included in a Mapt subscription
Adam Boduch, Jonathan Chaffer, Karl Swedberg

1 customer reviews
Create efficient and smart web applications with jQuery 3.0 using this step-by-step practical tutorial
$0.00
$16.00
$39.99
$29.99p/m after trial
RRP $31.99
RRP $39.99
Subscription
eBook
Print + eBook
Start 30 Day Trial
Subscribe and access every Packt eBook & Video.
 
  • 5,000+ eBooks & Videos
  • 50+ New titles a month
  • 1 Free eBook/Video to keep every month
Start Free Trial
 
Preview in Mapt

Book Details

ISBN 139781785882982
Paperback448 pages

Book Description

If you are a web developer and want to create web applications that look good, are efficient, have rich user interfaces, and integrate seamlessly with any backend using AJAX, then this book is the ideal match for you. We’ll show you how you can integrate jQuery 3.0 into your web pages, avoid complex JavaScript code, create brilliant animation effects for your web applications, and create a flawless app.

We start by configuring and customising the jQuery environment, and getting hands-on with DOM manipulation. Next, we’ll explore event handling advanced animations, creating optimised user interfaces, and building useful third-party plugins. Also, we'll learn how to integrate jQuery with your favourite back-end framework.

Moving on, we’ll learn how the ECMAScript 6 features affect your web development process with jQuery. we’ll discover how to use the newly introduced JavaScript promises and the new animation API in jQuery 3.0 in great detail, along with sample code and examples.

By the end of the book, you will be able to successfully create a fully featured and efficient single page web application and leverage all the new features of jQuery 3.0 effectively.

Table of Contents

Chapter 1: Getting Started
What jQuery does?
Why jQuery works well?
What's new in jQuery 3?
Making our first jQuery-powered web page
Plain JavaScript versus jQuery
Using development tools
Summary
Chapter 2: Selecting Elements
Understanding the DOM
Using the $() function
CSS selectors
Selector specificity
Attribute selectors
Custom selectors
DOM traversal methods
Iterating over jQuery objects
Accessing DOM elements
Summary
Exercises
Chapter 3: Handling Events
Performing tasks on page load
Handling simple events
Event propagation
Altering the journey - the event object
Removing an event handler
Simulating user interaction
Summary
Exercises
Chapter 4: Styling and Animating
Modifying CSS with inline properties
Hiding and showing elements
Effects and duration
Creating custom animations
Simultaneous versus queued effects
Summary
Exercises
Chapter 5: Manipulating the DOM
Manipulating attributes and properties
DOM tree manipulation
Copying elements
Content getter and setter methods
DOM manipulation methods in a nutshell
Summary
Exercises
Chapter 6: Sending Data with Ajax
Loading data on demand
Choosing a data format
Passing data to the server
Keeping an eye on the request
Error handling
Ajax and events
Deferreds and promises
Summary
Exercises
Chapter 7: Using Plugins
Using a plugin
Other types of plugins
The jQuery UI plugin library
The jQuery Mobile plugin library
Summary
Exercises
Chapter 8: Developing Plugins
Using the dollar ($) alias in plugins
Adding new global functions
Adding jQuery object methods
Providing flexible method parameters
Creating plugins with the jQuery UI widget factory
Plugin design recommendations
Summary
Exercises
Chapter 9: Advanced Selectors and Traversing
Selecting and traversing revisited
Customizing and optimizing selectors
DOM traversal under the hood
Summary
Exercises
Chapter 10: Advanced Events
Revisiting events
Event delegation
Defining custom events
Throttling events
Extending events
Summary
Further reading
Exercises
Chapter 11: Advanced Effects
Animation revisited
Observing and interrupting animations
Using global effect properties
Multi-property easing
Using deferred objects
Taking fine-grained control of animations
Summary
Exercises
Chapter 12: Advanced DOM Manipulation
Sorting table rows
Moving and inserting elements revisited
Storing data alongside DOM elements
Using HTML5 custom data attributes
Sorting and building rows with JSON
Revisiting attribute manipulation
Summary
Exercises
Chapter 13: Advanced Ajax
Implementing progressive enhancement with Ajax
Handling Ajax errors
Using the jqXHR object
Throttling Ajax requests
Extending Ajax capabilities
Summary
Exercises
Chapter 14: Testing JavaScript with QUnit
Downloading QUnit
Setting up the document
Organizing tests
Adding and running tests
Other types of tests
Practical considerations
Summary
Chapter 15: Quick Reference
Selector expressions
DOM traversal methods
Event methods
Effect methods
DOM manipulation methods
Ajax methods
Deferred objects
Miscellaneous properties and functions

What You Will Learn

  • Create custom interactive elements for your web designs
  • Find out how to create the best user interface for your web applications
  • Use selectors in a variety of ways to get anything you want from a page when you need it
  • Master events to bring your web pages to life
  • Add flair to your actions with a variety of different animation effects
  • Discover the latest features available in jQuery with the latest update of this incredibly popular title
  • Using jQuery npm Packages

Authors

Table of Contents

Chapter 1: Getting Started
What jQuery does?
Why jQuery works well?
What's new in jQuery 3?
Making our first jQuery-powered web page
Plain JavaScript versus jQuery
Using development tools
Summary
Chapter 2: Selecting Elements
Understanding the DOM
Using the $() function
CSS selectors
Selector specificity
Attribute selectors
Custom selectors
DOM traversal methods
Iterating over jQuery objects
Accessing DOM elements
Summary
Exercises
Chapter 3: Handling Events
Performing tasks on page load
Handling simple events
Event propagation
Altering the journey - the event object
Removing an event handler
Simulating user interaction
Summary
Exercises
Chapter 4: Styling and Animating
Modifying CSS with inline properties
Hiding and showing elements
Effects and duration
Creating custom animations
Simultaneous versus queued effects
Summary
Exercises
Chapter 5: Manipulating the DOM
Manipulating attributes and properties
DOM tree manipulation
Copying elements
Content getter and setter methods
DOM manipulation methods in a nutshell
Summary
Exercises
Chapter 6: Sending Data with Ajax
Loading data on demand
Choosing a data format
Passing data to the server
Keeping an eye on the request
Error handling
Ajax and events
Deferreds and promises
Summary
Exercises
Chapter 7: Using Plugins
Using a plugin
Other types of plugins
The jQuery UI plugin library
The jQuery Mobile plugin library
Summary
Exercises
Chapter 8: Developing Plugins
Using the dollar ($) alias in plugins
Adding new global functions
Adding jQuery object methods
Providing flexible method parameters
Creating plugins with the jQuery UI widget factory
Plugin design recommendations
Summary
Exercises
Chapter 9: Advanced Selectors and Traversing
Selecting and traversing revisited
Customizing and optimizing selectors
DOM traversal under the hood
Summary
Exercises
Chapter 10: Advanced Events
Revisiting events
Event delegation
Defining custom events
Throttling events
Extending events
Summary
Further reading
Exercises
Chapter 11: Advanced Effects
Animation revisited
Observing and interrupting animations
Using global effect properties
Multi-property easing
Using deferred objects
Taking fine-grained control of animations
Summary
Exercises
Chapter 12: Advanced DOM Manipulation
Sorting table rows
Moving and inserting elements revisited
Storing data alongside DOM elements
Using HTML5 custom data attributes
Sorting and building rows with JSON
Revisiting attribute manipulation
Summary
Exercises
Chapter 13: Advanced Ajax
Implementing progressive enhancement with Ajax
Handling Ajax errors
Using the jqXHR object
Throttling Ajax requests
Extending Ajax capabilities
Summary
Exercises
Chapter 14: Testing JavaScript with QUnit
Downloading QUnit
Setting up the document
Organizing tests
Adding and running tests
Other types of tests
Practical considerations
Summary
Chapter 15: Quick Reference
Selector expressions
DOM traversal methods
Event methods
Effect methods
DOM manipulation methods
Ajax methods
Deferred objects
Miscellaneous properties and functions

Book Details

ISBN 139781785882982
Paperback448 pages
Read More
From 1 reviews

Read More Reviews