Muutke küpsiste eelistusi

jQuery: A Beginner's Guide [Pehme köide]

  • Formaat: Paperback / softback, 376 pages, kõrgus x laius x paksus: 231x226x20 mm, kaal: 650 g, 85 Illustrations
  • Sari: Beginner's Guide
  • Ilmumisaeg: 16-Apr-2014
  • Kirjastus: McGraw-Hill Professional
  • ISBN-10: 0071817913
  • ISBN-13: 9780071817912
Teised raamatud teemal:
  • Formaat: Paperback / softback, 376 pages, kõrgus x laius x paksus: 231x226x20 mm, kaal: 650 g, 85 Illustrations
  • Sari: Beginner's Guide
  • Ilmumisaeg: 16-Apr-2014
  • Kirjastus: McGraw-Hill Professional
  • ISBN-10: 0071817913
  • ISBN-13: 9780071817912
Teised raamatud teemal:
Publisher's Note: Products purchased from Third Party sellers are not guaranteed by the publisher for quality, authenticity, or access to any online entitlements included with the product. Essential Skills--Made Easy!Learn the fundamentals of jQuery programming in no time. jQuery: A Beginner's Guide starts with the basics--from including the library in an HTML document to element selection, event handling, and CSS style manipulation. Next, it's on to JavaScript and the DOM,animation and effects, the Event object, and form validation. The book then delves into AJAX and plugins and covers more advanced techniques such as debugging and unit testing. Get started with jQuery right away using this fast-paced tutorial!

Designed for Easy Learning









Key Skills & Concepts -- Chapter-opening lists of specific skills covered in the chapter Ask the Expert -- Q&A sections filled with bonus information and helpful tips Try This -- Hands-on exercises that show you how to apply your skills Notes -- Extra information related to the topic being covered Tips -- Helpful reminders or alternate ways of doing things Cautions -- Errors and pitfalls to avoid Annotated Syntax -- Example code with commentary thatdescribes the programming techniques being illustrated Self Tests -- Chapter-ending quizzes to reinforce your skills





Ready-to-use code at www.mhprofessional.com/computingdownload
Acknowledgments xv
Introduction xvii
1 Getting Started with jQuery
1(18)
What You Need to Know
2(5)
Basic HTML and CSS Knowledge
2(1)
Basic Text Editor and Web Browser Knowledge
3(1)
Basic JavaScript Knowledge
4(3)
What Is jQuery?
7(1)
What Can jQuery Do?
7(1)
Who Can Use jQuery?
8(1)
Why jQuery Is Useful
8(1)
Accessible
8(1)
Browser Inconsistencies
8(1)
Additional Functionality
9(1)
Begin Using jQuery
9(2)
Obtaining jQuery
9(1)
Using a CDN
10(1)
Local or CDN: Which Method Should I Use?
11(1)
Your First jQuery Script
11(3)
Locating the Proper Element
12(1)
Waiting for the Document to Be Ready
13(1)
Try This 1-1 Add Another Class
14(1)
Resources for Help
15(1)
Chapter 1 Self Test
15(4)
2 Selecting Elements in the Document
19(30)
The () Function
20(1)
CSS Basics
20(4)
Selecting Elements
22(1)
Selecting Elements Using IDs and Classes
22(2)
Using CSS Selectors
24(13)
The All, Element, Class, and ID Selectors
27(1)
The Descendant Selector
28(1)
The Child Selector
29(1)
The First Child, Last Child, and Nth Child Selectors
30(2)
The Not Selector
32(1)
Attribute Selectors
33(3)
The Remaining CSS Selectors
36(1)
Try This 2-1 Add Another Class
37(1)
Using Extended jQuery Selectors
38(6)
The Attribute Not Equal Selector
39(2)
The First, Last, and Element at Index Selectors
41(2)
The Even and Odd Selectors
43(1)
Try This 2-2 More Selection Practice
44(2)
Chapter 2 Self Test
46(3)
3 Event Handling
49(28)
Waiting for the Document to Be Ready
50(2)
ready() vs. load()
50(1)
What Is the Difference?
51(1)
Using the Argument with ready()
51(1)
Handling an Event
52(6)
Basic Event Handling
53(5)
jQuery Events
58(11)
Mouse Events
58(3)
Keyboard Events
61(1)
Other Events
62(1)
Event Capturing and Bubbling
62(3)
Using the on() Method to Handle Events
65(3)
Other Events
68(1)
Try This 3-1 Add Event Handlers
69(2)
Triggering Events
71(2)
Try This 3-2 Trigger Practice
73(1)
Chapter 3 Self Test
74(3)
4 Working with Styles
77(28)
CSS Rules
78(1)
The css() Method
78(7)
Getting Values
79(1)
Setting Values
80(5)
Class Methods
85(8)
The addClass() and removeClass() Methods
85(2)
The toggleClass() Method
87(5)
The hasClass() Method
92(1)
Try This 4-1 Use toggleClass()
93(2)
Size and Position Methods
95(5)
The width() and height() Methods
95(1)
The innerWidth() and innerHeight() Methods
95(1)
The outerWidth() and outerHeight() Methods
96(1)
The offset() Method
96(1)
The position() Method
97(1)
The scrollLeft() and scrollTop() Methods
98(2)
Try This 4-2 Use offset()
100(1)
Chapter 4 Self Test
101(4)
5 JavaScript and the Document Object Model
105(34)
Basic JavaScript
106(15)
Comments
106(1)
Variables and Data Types
107(3)
Operators
110(5)
Flow Control Statements
115(1)
Functions
116(2)
Arrays
118(1)
Objects
119(2)
Try This 5-1 Use JavaScript with jQuery
121(2)
The Document Object Model (DOM)
123(1)
The DOM and jQuery
123(12)
Attributes
123(4)
Creating New Elements
127(5)
Copying Elements
132(2)
Removing Elements
134(1)
Try This 5-2 Add Elements
135(1)
Chapter 5 Self Test
136(3)
6 Animations and Effects
139(36)
Show and Hide Animation Methods
140(16)
The show() and hide() Methods
141(7)
The slideDown() and slideUp() Methods
148(4)
The fadeln() and fadeOut() Methods
152(4)
Callback Functions
156(5)
Try This 6-1 Practice with slideDown()
161(1)
Creating Custom Animations
162(6)
Property/Value Map
163(1)
Duration Values
163(1)
Easing Values
163(1)
Callback Function
164(1)
The Second Form of animate()
164(1)
Updating the FAQ Page
165(3)
Try This 6-2 Chain on a Custom Animation
168(1)
Stopping Animations
169(3)
Chapter 6 Self Test
172(3)
7 The Event Object
175(26)
The Event Object in jQuery
176(4)
Browser Inconsistencies
176(1)
About the Event Object
177(3)
Event Properties
177
The type Property
180(3)
The timeStamp Property
183(4)
The which Property
187(3)
Try This 7-1 Practice Using which
190(2)
Event Methods
192(5)
The stopPropagation() Method
192(2)
The stopImmediatePropagation() Method
194(2)
The "is" Methods
196(1)
Try This 7-2 Practice Stopping Propagation
197(1)
Chapter 7 Self Test
198(3)
8 The DOM and Forms
201(38)
Form Element Values
202(4)
The val() Method
202(4)
Form Events
206(8)
The blur() and focus() Methods
206(4)
The change() Method
210(3)
The select() Method
213(1)
The submit() Method
214(1)
Regular Expressions
214(4)
Creating Regular Expressions
215(1)
Testing Strings Against Regular Expressions
215(2)
Using Flags
217(1)
Try This 8-1 Practice Using Regular Expressions
218(1)
Form Validation
219(14)
Helpful HTML for Forms
220(3)
Helping the User
223(5)
Validating the Form
228(5)
Try This 8-2 Practice Validation
233(2)
Chapter 8 Self Test
235(4)
9 Working with AJAX
239(38)
Introduction to AJAX
240(1)
Creating AJAX Requests
240(14)
Retrieving HTML
241(7)
Retrieving XML
248(3)
Retrieving JSON
251(3)
Try This 9-1 Practice Basic AJAX
254(2)
Two-Way AJAX Requests
256(15)
Using Get and Post Requests
256(10)
Handling Errors
266(2)
Form Input Serialization
268(3)
Try This 9-2 Practice Serialization
271(1)
Security Issues and Further Information
272(2)
Further Information
273(1)
Chapter 9 Self Test
274(3)
10 Using Plugins
277(20)
Introduction to jQuery Plugins
278(1)
Using a Plugin
278(6)
Downloading and Installing a Plugin
279(2)
Calling the Method
281(1)
Setting Plugin Options
281(3)
Try This 10-1 Practice Using a Plugin
284(2)
Helpful Plugins
286(5)
jQuery UI
286(4)
Parsley.js
290(1)
ParamQuery Grid
291(1)
jKit
291(1)
jCanvas
291(1)
Try This 10-2 Practice with jQuery UI
291(2)
Chapter 10 Self Test
293(4)
11 Creating Plugins
297(26)
Global Methods and the Alias
298(8)
Ensuring Is Available
298(1)
Creating Methods and Minimizing Naming Conflicts
299(7)
Creating jQuery Object Methods
306(8)
Extending the jQuery Object
306(3)
Using Implicit Iteration and Returning a jQuery Object
309(2)
User Customization with an Options Map
311(3)
Try This 11-1 Practice Plugin Options
314(2)
Adding a Callback Function
316(2)
Try This 11-2 Practice with Callbacks
318(2)
Chapter 11 Self Test
320(3)
12 Advanced Techniques and Further Resources
323(14)
Debugging
324(8)
Simple Alerts
324(2)
Browser Developer Tools
326(2)
Using a Lint Tool
328(4)
Try This 12-1 Practice Using a Lint Tool
332(1)
Unit Testing
333(1)
Additional Resources
333(1)
jQuery Resources
333(1)
JavaScript Resources
333(1)
Contacting the Author
334(1)
Chapter 12 Self Test
334(3)
A Answers to Self Tests
337(8)
Chapter 1 Getting Started with jQuery
338(1)
Chapter 2 Selecting Elements in the Document
338(1)
Chapter 3 Event Handling
339(1)
Chapter 4 Working with Styles
339(1)
Chapter 5 JavaScript and the Document Object Model
340(1)
Chapter 6 Animations and Effects
340(1)
Chapter 7 The Event Object
341(1)
Chapter 8 The DOM and Forms
342(1)
Chapter 9 Working with AJAX
342(1)
Chapter 10 Using Plugins
343(1)
Chapter 11 Creating Plugins
343(1)
Chapter 12 Advanced Techniques and Further Resources
344(1)
Index 345
John Pollock (Huntsville, TX) is a university student in Huntsville, Texas. He has been working with JavaScript and other Web development tools for more than 5 years. Her runs two Web sites devoted to Web development technology.