Update cookies preferences

E-book: Practical jQuery

  • Format: PDF+DRM
  • Pub. Date: 09-Jul-2015
  • Publisher: APress
  • Language: eng
  • ISBN-13: 9781484207871
Other books in subject:
  • Format - PDF+DRM
  • Price: 49,39 €*
  • * the price is final i.e. no additional discount will apply
  • Add to basket
  • Add to Wishlist
  • This ebook is for personal use only. E-Books are non-refundable.
  • Format: PDF+DRM
  • Pub. Date: 09-Jul-2015
  • Publisher: APress
  • Language: eng
  • ISBN-13: 9781484207871
Other books in subject:

DRM restrictions

  • Copying (copy/paste):

    not allowed

  • Printing:

    not allowed

  • Usage:

    Digital Rights Management (DRM)
    The publisher has supplied this book in encrypted form, which means that you need to install free software in order to unlock and read it.  To read this e-book you have to create Adobe ID More info here. Ebook can be read and downloaded up to 6 devices (single user with the same Adobe ID).

    Required software
    To read this ebook on a mobile device (phone or tablet) you'll need to install this free app: PocketBook Reader (iOS / Android)

    To download and read this eBook on a PC or Mac you need Adobe Digital Editions (This is a free app specially developed for eBooks. It's not the same as Adobe Reader, which you probably already have on your computer.)

    You can't read this ebook with Amazon Kindle

Practical jQuery is your step-by-step guide to using jQuery in the real world, taking you from downloading jQuery all the way to extending it by writing your own plug-ins and testing the DOM using QUnit. jQuery is one of today’s most popular JavaScript web application development frameworks and libraries. While getting started with the tool is easy, sometimes it's not as simple to completely realize the power and automation that it can bring to your development work—and that's especially the case when you're in the middle of a project, up against a deadline.

Using this book, you will learn how to use jQuery’s powerful DOM manipulation tools to dynamically update content on your site. You will be able to extend jQuery’s capabilities by writing your own plugins on top of the framework, animate elements, build your own jQuery elements, employ best practices, and avoid common errors. Practical jQuery teaches you how, with jQuery, you can unit test and refactor your code. You’ll see how expressive yet concise jQuery’s code is and how much quicker and efficient it is to develop with jQuery.

Get a fundamental perspective on how jQuery works, how to understand, select, and build your own plug-ins, and how to make sure your projects run at the peak of their potential performance usingPractical jQuery today.

About the Authors xv
About the Technical Reviewer xvii
Acknowledgments xix
Introduction xxi
Chapter 1 Evolution of jQuery 1(18)
Traditional JavaScript Basics
1(7)
The Window Object
1(2)
Child Objects
3(5)
Old School Challenges
8(4)
Challenges Pertaining to the Window Object
9(1)
Challenges Pertaining to the Document Object
10(1)
Challenges Related to the Globals
11(1)
Need for a Revolution
12(1)
Who Was the Revolutionary?
13(1)
Why jQuery?
14(4)
Minimal and Easy Coding
14(1)
Readable/Clean Code
15(1)
Easy CSS Handling
16(1)
Animation Methods
16(2)
Intuitive Function Calls
18(1)
Summary
18(1)
Chapter 2 Getting Started with jQuery 19(20)
Document Object Model (DOM)
19(2)
Downloading and Setting Up jQuery
21(2)
Downloading from the Official Web Site
21(2)
Including jQuery from a CDN
23(1)
Clone from GitHub
23(1)
jQuery Fundamentals
23(8)
jQuery Syntax
23(1)
Document Ready Event
24(1)
jQuery noConflict() Method
25(2)
jQuery Selectors
27(4)
Working with jQuery
31(7)
The Problem Statement
31(3)
The Anonymous Function
34(1)
Preloading Images with jQuery
35(1)
each() in jQuery
36(2)
Summary
38(1)
Chapter 3 Traversing DOM with jQuery 39(36)
Selecting Elements with CSS Selectors
39(6)
Type Selector
40(1)
Universal Selector
40(1)
Attribute Selector
40(1)
Class Selector
41(1)
ID Selector
42(1)
Pseudo Class Selector
43(1)
Relationship-Based Selectors
44(1)
Using jQuery Selectors
45(3)
Type Selector
46(1)
Universal Selector
46(1)
Attribute Selector
46(1)
Class Selector
47(1)
ID Selector
47(1)
Pseudo Class Selector
47(1)
Other jQuery Selectors
47(1)
Traversing DOM with jQuery Traversal Methods
48(12)
The Curtain Raiser
49(1)
jQuery Methods for DOM Traversal
50(10)
Caching Selector and Chaining Methods
60(4)
Selector Caching
60(3)
Chaining
63(1)
jQuery Filtering
64(9)
The .eq() Method
65(1)
The .filter() Method
66(3)
The .first() Method
69(1)
The .last() Method
69(1)
The .has() Method
70(1)
The .is() Method
71(1)
The .not() Method
72(1)
Summary
73(2)
Chapter 4 DOM Manipulation with jQuery 75(24)
Editing Appearance with jQuery CSS Methods
75(5)
Obtaining CSS Properties
76(1)
Setting CSS Properties
76(3)
Setting Multiple CSS Properties
79(1)
Editing/Changing an Element's Attributes, Contents, and Position
80(5)
Editing Attributes
80(2)
Editing Contents
82(3)
Creating and Inserting New DOM Elements
85(6)
.append() vs. .appendTo()
86(1)
Inserting New Elements in Specific Locations
87(1)
Putting the Methods to Work
87(4)
Removing and Cloning DOM Elements
91(4)
Working with Dimensions
95(3)
jQuery width() and height() Methods
96(1)
jQuery innerWidth() and innerHeight() Methods
96(1)
jQuery .outerWidth() and .outerHeight() Methods
97(1)
Summary
98(1)
Chapter 5 Events in jQuery 99(30)
Introducing Events
99(2)
Browsers and Events
101(3)
Event Listeners and Event Handlers
104(9)
The Event() Method in jQuery
113(9)
Binding Events
117(4)
Unbinding Events
121(1)
Events Propagation and Events Bubbling
122(3)
The Event Capturing and Event Bubbling Models
123(1)
The W3C Event Model
123(2)
Callback Action in Event
125(2)
Summary
127(2)
Chapter 6 Real World Events in jQuery 129(22)
Common Gotchas in Event Handling
129(4)
Handling Dynamic Elements
129(2)
Handling jQuery Animation Buildup
131(2)
Preventing Event Propagation and Bubbling
133(1)
Handling the Event Queue
134(2)
How Handling Works in a jQuery Event Queue
135(1)
The jQuery queue() Method
135(1)
Building a jQuery UI Accordion
136(5)
Using the jQuery UI Accordion
137(2)
Customizing an Accordion
139(2)
Validating Form Elements
141(8)
Using the Validate Plug-in
142(2)
Validating Form Elements Using Customized jQuery
144(5)
Summary
149(2)
Chapter 7 Animation in jQuery 151(44)
Life Without jQuery
151(3)
jQuery's animate()
154(3)
Fading in jQuery
157(11)
Using the fadeOut() Method
158(2)
Using the fadeln() Method
160(4)
Using the fadeTo() Method
164(2)
Using the fadeToggle() Method
166(2)
Sliding in jQuery
168(9)
Using the slideUp() Method
168(3)
Using the slideDown() Method
171(4)
Using the slideToggle() Method
175(2)
Toggle() in jQuery
177(2)
Creating a Basic Light Box
179(5)
Controlling Animation Behavior
184(1)
Smoothing Your Animations
184(1)
Using the fx Object to Control Frame Rate
184(1)
Turning Off Your Animation
185(1)
Creating a Basic Image Slider
185(8)
Summary
193(2)
Chapter 8 Ajax with jQuery 195(16)
Introducing Ajax
195(2)
How Did Ajax Originate?
195(1)
The Technologies That Make Up Ajax
196(1)
Ajax Using jQuery
197(5)
The Nuts and Bolts of Ajax in JavaScript
197(1)
The jQuery Approach
198(4)
Introducing JSON
202(5)
Understanding JSON
203(1)
Parsing JSON with JavaScript
204(2)
Using the jQuery Alternative to JavaScript
206(1)
Ajax and JSON Usage Example
207(3)
Summary
210(1)
Chapter 9 Creating Plug-ins with jQuery 211(18)
What Is a Plug-in?
211(2)
Plug-in Best Practices
213(2)
Private Variables
213(1)
Public Variables
214(1)
Parameters
214(1)
Plug-in Writing Guidelines
215(2)
Do You Really Need the Plug-in?
215(1)
Reuse What Already Exists
216(1)
Preserve the Reference to jQuery
216(1)
Do Not Unnecessarily Modify Objects
216(1)
Ensure Chainability
217(1)
Creating a Form Validation Plug-in
217(4)
Creating an Accordion Plug-in
221(6)
Summary
227(2)
Chapter 10 Integrating Plug-ins with jQuery 229(16)
Plug-in Repositories
229(3)
The jQuery Registry
229(1)
The NPM Open Source Package Repository
230(1)
The GitHub Repository
231(1)
Integrating Plug-ins
232(3)
Downloading and Saving
233(1)
Do a Test Run on Some Simple Elements
233(1)
Include the Plug-in File in the script Tag
233(1)
The Dilemma-in the Head or at the End of the Body
233(1)
Keep the Code Clean
234(1)
Plug-in Customization
235(2)
Minifying Code for Distribution
237(6)
Compression vs. Minification
238(1)
What Does Minified Code Look Like?
239(2)
There Is More: Uglification and Beautification
241(2)
Summary
243(2)
Chapter 11 Using jQuery Frameworks 245(20)
JavaScript and jQuery Frameworks
245(7)
Bootstrap
245(4)
AngularJS
249(3)
Components in jQuery
252(1)
jQuery UI
253(6)
Drag and Drop Using jQuery UI
253(3)
Autocomplete
256(2)
Datepicker
258(1)
jQuery Mobile
259(4)
Some Cool Features of jQuery Mobile
259(2)
Ajax Navigation System
261(1)
Pop-ups in jQuery Mobile
262(1)
Summary
263(2)
Chapter 12 Testing jQuery with QUnit 265(24)
QUnit as a JavaScript Framework
265(1)
Introduction to Unit Testing
266(3)
The Need for Unit Testing
267(1)
Why QUnit?
268(1)
Getting Started with QUnit
269(10)
QUnit Syntax
269(1)
Styling the Test Result
270(1)
Writing the First Test Case
270(3)
Commonly Used QUnit Methods
273(6)
Testing DOM Manipulation
279(3)
Refactoring Code
282(6)
A Simple Refactoring
283(1)
Moving Ahead in Refactoring
284(3)
Writing Another Test Case on the Refactored Code
287(1)
Summary
288(1)
Index 289