Muutke küpsiste eelistusi

JavaScript for Web Warriors 7th edition [Pehme köide]

(Carey Associates, Inc.),
  • Formaat: Paperback / softback, 736 pages, kõrgus x laius x paksus: 22x213x274 mm, kaal: 1315 g
  • Ilmumisaeg: 24-Jun-2021
  • Kirjastus: Course Technology Inc
  • ISBN-10: 035763800X
  • ISBN-13: 9780357638002
Teised raamatud teemal:
  • Pehme köide
  • Hind: 73,51 €*
  • * hind on lõplik, st. muud allahindlused enam ei rakendu
  • Tavahind: 91,89 €
  • Säästad 20%
  • Raamatu kohalejõudmiseks kirjastusest kulub orienteeruvalt 2-4 nädalat
  • Kogus:
  • Lisa ostukorvi
  • Tasuta tarne
  • Tellimisaeg 2-4 nädalat
  • Lisa soovinimekirja
  • Formaat: Paperback / softback, 736 pages, kõrgus x laius x paksus: 22x213x274 mm, kaal: 1315 g
  • Ilmumisaeg: 24-Jun-2021
  • Kirjastus: Course Technology Inc
  • ISBN-10: 035763800X
  • ISBN-13: 9780357638002
Teised raamatud teemal:
Learn to use JavaScript, the popular scripting language that allows web page authors to develop interactive web pages and sites. Carey/Vodnik's JAVASCRIPT FOR WEB WARRIORS, Seventh Edition introduces a variety of techniques that focus on what you need to know to begin using JavaScript right away. Step-by-step tasks within each chapter highlight particular techniques essential for building actual JavaScript programs. Guided activities reinforce skills and build in complexity as you progress. You also study debugging techniques. Using accompanying MindTap digital resources, you read and immediately practice with embedded JavaScript coding exercises in an authentic integrated development environment (IDE). Learning objectives, summaries, review and key terms highlight major concepts while reinforcement exercises let you further practice new techniques. After completing your course, you will able to use JavaScript to build professional quality web applications.
Preface xi
Chapter 1 Introduction To Javascript 1(36)
Exploring the JavaScript Language
1(6)
Introducing Scripting Languages
2(1)
JavaScript and ECMAScript
2(1)
The DOM and the BOM
3(1)
Understanding Client/Server Architecture
4(1)
JavaScript and Client-Side Scripting
5(1)
Understanding Server-Side Scripting
6(1)
Should You Use Client-Side or Server-Side Scripting?
6(1)
Writing a JavaScript Program
7(7)
IDES and Code Editors
7(2)
The script Element
9(1)
JavaScript Statements
9(1)
Understanding JavaScript Objects
10(1)
Using the write() Method
10(3)
Case Sensitivity in JavaScript
13(1)
Adding Comments to a JavaScript Program
13(1)
Writing Basic JavaScript Code
14(3)
Using Variables
14(1)
Assigning Variable Names
15(1)
Declaring and Initializing Variables
15(2)
Building Expressions with Variables
17(1)
Building an Expression
17(1)
Modifying Variables
18(1)
Understanding Events
18(4)
Working with Elements and Events
19(2)
Referencing Web Page Elements
21(1)
Structuring JavaScript Code
22(1)
Including a script Element for Each Code Section
23(1)
Placing the script Element
23(1)
Creating a JavaScript Source File
23(4)
Referencing an External File
24(1)
Using the async and defer Keywords
24(1)
Connecting to a JavaScript File
25(1)
Working with Libraries
26(1)
Validating Web Pages
27(1)
Summary
28(1)
Key Terms
29(1)
Review Questions
30(1)
Hands-On Projects
31(4)
Case Projects
35(2)
Chapter 2 Working With Functions, Data Types, And Operators 37(40)
Working with Functions
38(4)
Defining a Function
38(1)
Writing a Function
39(2)
Calling a Function
41(1)
Returning a Value from a Function
41(1)
Managing Events with Functions
42(3)
Using Event Handlers
42(1)
Events as Object Properties
43(1)
Event Listeners
43(1)
Events and Anonymous Functions
44(1)
Applying a Function to an Event
44(1)
Using Built-in JavaScript Functions
45(1)
Understanding Variable Scope
45(3)
let and var Declaration Scopes
46(1)
Local and Global Scope
46(2)
Working with Data Types
48(3)
Working with Numeric Values
48(1)
Working with Boolean Values
49(1)
Working with Strings
49(1)
Escape Characters and Sequences
50(1)
Using Operators to Build Expressions
51(6)
Arithmetic Operators
52(1)
Assignment Operators
53(1)
Comparison Operators
54(1)
Conditional Operators
55(1)
Understanding Falsy and Truthy Values
55(1)
Logical Operators
56(1)
Special Operators
57(1)
Understanding Operator Precedence
57(2)
Using Expressions with Web Form Controls
59(7)
Working with Input Control Values
59(2)
Working with Checkboxes
61(3)
Using the change Event with Web Form Controls
64(2)
Locating Errors with the Browser Console
66(2)
Accessing the Browser Console
66(1)
Locating an Error in Your Program
67(1)
Summary
68(1)
Key Terms
69(1)
Review Questions
70(1)
Hands-On Projects
71(5)
Case Projects
76(1)
Chapter 3 Building Arrays And Controlling Flow 77(40)
Storing Data in Arrays
77(6)
Declaring and Initializing Arrays
78(1)
Elements and Indexes
79(1)
Creating an Array
79(3)
Multidimensional Arrays
82(1)
Exploring HTML Collections
83(2)
Referencing an Element within a Collection
83(1)
Searching through the DOM
84(1)
Viewing Arrays and HTML Collections with the Console
85(1)
Working with Program Loops
86(8)
The while Loop
86(3)
The do while Loop
89(1)
The for Loop
89(2)
Writing a for Loop
91(3)
Exploring Array Methods for Generating Loops
94(2)
Adding Decision Making to Your Code
96(9)
The if Statement
96(1)
The if else Statement
97(1)
The else if Statements
97(3)
Nested if and if else Statements
100(1)
Conditional Statements and Browser Testing
101(1)
The switch Statement
102(3)
Managing Program Loops and Conditional Statements
105(2)
The break Statement
105(1)
The continue Statement
105(1)
Statement Labels
105(2)
Summary
107(1)
Key Terms
107(1)
Review Questions
108(1)
Hands-On Projects
109(7)
Case Projects
116(1)
Chapter 4 Debugging And Error Handling 117(46)
Introduction to Debugging
117(4)
Load-Time Errors
118(1)
Runtime Errors
119(1)
Logic Errors
120(1)
Starting Debugging with the Browser Console
121(4)
Running Javascript in Strict Mode
125(2)
Tracing Errors to Their Source
127(9)
Tracing Errors with the window.alert() Method
127(4)
Tracing Errors with the Console Log
131(4)
Using Comments to Locate Bugs
135(1)
Tracking Program Flow with Debugging Tools
136(9)
Accessing your Browser's Debugging Tools
136(1)
Adding and Removing Break Points
137(3)
Stepping through the Program Execution
140(1)
Tracking Variables and Expressions
141(2)
Examining the Call Stack
143(2)
Managing Errors
145(5)
Handling Exceptions with the try catch Statement
145(1)
Throwing an Exception
146(1)
The try catch finally Statement
146(1)
The error Parameter in the catch Statement
147(1)
Applying Exception Handling to a Program
147(3)
Customizing Your Error Handling
150(2)
Catching Errors with the error Event
150(1)
Error Handling Functions
151(1)
Summary
152(1)
Key Terms
153(1)
Review Questions
153(1)
Hands-On Projects
154(6)
Case Projects
160(3)
Chapter 5 Creating A Web APP Using The Document Object Model 163(46)
Designing a Web App
163(2)
Introducing Nodes
165(12)
Nodes and the Document Object Model
166(2)
Selecting Nodes with the querySelectorAll () Method
168(1)
Creating and Connecting Nodes
168(1)
Elements Nodes and HTML Attributes
169(1)
Nodes and Inline Styles
170(1)
Creating a Document Fragment in an App
170(3)
Viewing Elements within the Browser Debugger
173(4)
Restructuring a Node Tree
177(4)
Moving Nodes with the appendChild () Method
177(2)
Moving Nodes with the insertBefore () Method
179(2)
Cloning a Node
181(1)
Running Timed Commands
181(3)
Repeating Commands at Specified Intervals
181(1)
Stopping a Timed Command
182(1)
Using Time-Delayed Commands
183(1)
Working with Popup Windows
184(4)
System Dialog Boxes
184(1)
Working with Browser Windows
185(2)
Writing Content to a Browser Window
187(1)
Limitations of Browser Windows
187(1)
Creating an Overlay
188(5)
Introducing the this Object
190(1)
Removing a Node
191(2)
Exploring the Browser Object Model
193(3)
The History Object
193(1)
The location Object
194(1)
The navigator Object
194(1)
The screen Object
195(1)
Summary
196(1)
Key Terms
197(1)
Review Questions
197(2)
Hands-On Projects
199(7)
Case Projects
206(3)
Chapter 6 Enhancing And Validating Forms 209(44)
Exploring Forms and Form Elements
209(5)
The Forms Collection
211(1)
Working with Form Elements
211(1)
Properties and Methods of input Elements
212(1)
Navigating Between Input Controls
213(1)
Working with Selection Lists
214(3)
Working with Option Buttons
217(3)
Locating the Checked Option
217(3)
Accessing the Option Label
220(1)
Formatting Data Values in a Form
220(3)
The toFixed () Method
220(1)
Formatting Values Using a Locale String
221(2)
Responding to Form Events
223(2)
Working with Hidden Fields
225(2)
Exploring Form Submission
227(1)
Using the submit Event
227(1)
Resetting a Form
227(1)
Validating Form Data with JavaScript
228(10)
Working with the Constraint Validation API
230(1)
Exploring the ValidityState Object
231(1)
Creating a Custom Validation Message
232(1)
Responding to Invalid Data
233(2)
Validating Data with Pattern Matching
235(1)
Validating a Selection List
236(2)
Testing a Form Field Against a Regular Expression
238(2)
Creating a Custom Validity Check
240(1)
Managing Form Validation
241(2)
Summary
243(1)
Key Terms
244(1)
Review Questions
244(2)
Hands-On Projects
246(6)
Case Projects
252(1)
Chapter 7 Manipulating Data In Strings, Arrays, And Other Objects 253(56)
Retrieving Content from a Text File
253(5)
The file Object
255(1)
The File Reader API
256(2)
Working with Text Strings
258(8)
Searching for Substrings within a Text String
259(2)
Modifying Text Strings
261(2)
Extracting Characters and Substrings
263(1)
Combining Text Strings
264(1)
Comparing Text Strings
265(1)
Introducing Regular Expressions
266(8)
Matching a Substring
266(1)
Setting Regular Expression Flags
267(1)
Defining Character Types and Character Classes
268(2)
Specifying Repeating Characters
270(2)
Using Escape Sequences
272(1)
Specifying Alternate Patterns and Grouping
273(1)
Programming with Regular Expressions
274(6)
Regular Expression Methods
275(1)
Replacing Text with Regular Expressions
276(2)
Splitting a Text String into an Array
278(1)
Referencing Substring Matches
279(1)
Exploring Array Methods
280(12)
Reversing and Sorting an Array
281(3)
Sorting with a Compare Function
284(2)
Extracting and Inserting Array Items
286(1)
Using Arrays as Data Stacks
287(5)
Exploring the Math Object
292(2)
The Math Object
292(1)
Math Object Properties
292(1)
Applying a Math Method to an Array
293(1)
Random Numbers and Random Sorting
294(1)
Exploring the Date Object
294(3)
Extracting Information from Dates and Times
295(1)
Setting Date and Time Values
296(1)
Exploring Template Literals
297(2)
Adding Placeholders to Template Literals
297(1)
Tagging a Template Literal
297(2)
Summary
299(1)
Key Terms
300(1)
Review Questions
300(1)
Hands-On Projects
301(7)
Case Projects
308(1)
Chapter 8 Creating Customized Objects, Properties, And Methods 309(54)
Understanding Object-Oriented Programing
309(3)
Reusing Software Objects
310(1)
Understanding Encapsulation
310(2)
Creating an Object Literal
312(6)
Dot Operators and Bracket Notation
313(2)
Creating a Custom Method
315(2)
Creating an Object with the new Operator
317(1)
Working with Object Classes
318(9)
Understanding Object Classes
318(1)
Object Constructors and Literals
318(1)
Constructor Functions
319(1)
Combining Object Classes
320(7)
Working with Object Prototypes
327(4)
The Prototype Object
327(2)
Extending Built-in javaScript Objects
329(2)
Introducing Closures
331(7)
Lexical Scope
331(1)
Closures and the Lexical Environment
332(2)
Closures with for Loops
334(4)
Working with Public, Private, and Privileged Methods
338(5)
Combining Objects with Prototype Chains
343(4)
Creating a Prototype Chain
344(1)
Using the Base Object
345(1)
Using the apply () and call () Methods
346(1)
Data Storage with Associative Arrays
347(4)
The for in and for of Loops
347(2)
Storing Object data in jSON
349(2)
Summary
351(1)
Key Terms
352(1)
Review Questions
353(1)
Hands-On Projects
354(8)
Case Projects
362(1)
Chapter 9 Managing State Information And Security 363(38)
Understanding Sessions and State Information
363(2)
Sharing Data Between Forms
365(6)
Retrieving the Query String Text using the Location object
367(1)
Replacing URI Encoding Characters
368(3)
Introducing Web Storage
371(1)
The Web Storage API
371(1)
Local Storage and Session Storage Objects
371(1)
Storing Data in Web Storage
372(7)
Viewing Web Storage Items in your Browser
374(1)
Retrieving Items with the get Item () Method
374(2)
Removing Items from Web Storage
376(1)
Exploring Storage Events
377(1)
Web Storage and the Same-Origin Policy
378(1)
Introducing Cookies
379(2)
Cookies vs. Web Storage
379(1)
The Structure of a Cookie
380(1)
Writing Data into a Cookie
381(4)
Setting the Cookie Expiration Date
382(1)
Setting the Cookie Path
383(1)
Setting the Cookie Domain
383(1)
Defining Cookie Security
383(1)
A Function to Write the Cookie Value
384(1)
Reading a Cookie
385(1)
Deleting a Cookie
386(1)
Exploring Security Issues
386(3)
Secure Coding with JavaScript
387(1)
JavaScript Security Concerns
387(1)
Using Third-Party Scripts
388(1)
Summary
389(1)
Key Terms
389(1)
Review Questions
390(1)
Hands-On Projects
391(8)
Case Projects
399(2)
Chapter 10 Programming With Event Objects And Third-Party APIS 401(48)
Working with Events as Objects
402(4)
The Event Object
402(1)
Event Capturing and Bubbling
403(3)
Exploring Mouse, Touch, and Pointer Events
406(4)
Exploring Touch Events
407(2)
Managing Multiple Touchpoints
409(1)
Using Pointer Events
409(1)
Programming a Drag and Drop Action
410(5)
Finding Event Coordinates
411(2)
Dragging and Dropping an Element
413(2)
Browser Tools for Touchscreen Emulation
415(1)
Exploring the Drag and Drop API
415(3)
The HTML Drag and Drop API
416(1)
Transferring Data with Drag and Drop
417(1)
Working with Keyboard Events
418(3)
Creating an Interactive Map
421(5)
Getting Started with the Google Maps API
421(2)
The map Object
423(2)
Adding Map Pins
425(1)
Mapping Your Position with Geolocation
426(4)
Adding Directions to a Map
430(4)
The route Object
430(1)
Displaying the Driving Route
431(3)
Introducing the Device Orientation API
434(1)
Preparing an App for Mobile Use
435(2)
Testing Tools
435(1)
Minimizing Download Size
435(1)
Minifying Files
435(2)
Summary
437(1)
Key Terms
437(1)
Review Questions
438(1)
Hands-On Projects
439(7)
Case Projects
446(3)
Chapter 11 Managing Data Requests With AJAX And FETCH 449(52)
Introducing Server Requests
450(2)
Exploring HTTP Messages
452(2)
Understanding HTTP Messages
452(2)
Introducing AJAX
454(4)
The XMLHttpRequest Object
454(2)
Managing a Response
456(2)
Viewing the Status of a Request and Response
458(2)
AJAX and Callback Hell
460(1)
Introducing Arrow Functions
461(3)
Arrow Functions and Parameter Values
462(2)
Exploring the Promise Object
464(3)
Defining a Promise Object
464(1)
Chaining Promises
465(1)
Running Multiple Promises
466(1)
Using the Fetch API
467(5)
Managing Fetch Responses
467(1)
Error Handling with Fetch
468(1)
Using Fetch to Return a Search
469(3)
Working with XML
472(4)
Parsing XML Content
473(1)
Working with an XML Node Tree
474(2)
Creating an Autocomplete Search Box
476(6)
Working with JSON Data
477(2)
Building the Suggestion Box
479(3)
Working with Third-Party APIs
482(4)
Requesting a Random GIF
482(1)
Third-Party Endpoints
483(3)
Exploring Security Issues with APIs
486(2)
Working with CORS
486(1)
Using JSONP
486(1)
Using XHR with a Proxy
487(1)
Summary
488(1)
Key Terms
488(1)
Review Questions
489(1)
Hands-On Projects
490(10)
Case Projects
500(1)
Chapter 12 Introducing jQuery 501(34)
Getting Started with jQuery
501(4)
Versions of jQuery
502(1)
Loading jQuery
502(1)
Is jQuery still Relevant?
503(2)
Working with jQuery Selectors
505(6)
Selecting Elements from the DOM
506(1)
Traversing the DOM with jQuery
507(1)
Working with Attributes and CSS Properties
508(1)
Changing the DOM Structure
509(2)
Handling Events with jQuery
511(4)
Working with Effects and Animations
515(5)
Chaining Effects
516(1)
Creating Custom Effects with Animate
517(2)
Controlling the Animation Queue
519(1)
Exploring jQuery Plugins
520(4)
Summary
524(1)
Key Terms
524(1)
Review Questions
525(1)
Hands-On Projects
526(7)
Case Projects
533(2)
Appendix A Installing And Configuring A Testing Server 535(8)
Appendix B Working With HTML And CSS 543(6)
Appendix C Solutions To Quick Checks Online
Glossary 549(12)
Index 561
A leading textbook author, lecturer and instructor, Patrick Carey has authored or co-authored more than 40 popular academic and trade texts for the academic market. He has taught and written about a wide range of topics, including website design, JavaScript programming, Microsoft Office and Excel, statistics, data analysis and mathematics. Mr. Carey received his Master of Science in biostatistics from the University of Wisconsin, where he worked as a researcher designing and analyzing clinical studies. Today, he splits his time between Wisconsin and Colorado, and when he is not writing, he can be found hiking and cycling. Sasha Vodnik is a programmer, instructional designer, and trainer. They have authored or co-authored textbooks on front-end topics including HTML, CSS, and XML, and have also written and presented several online courses for advanced JavaScript developers. Sasha currently works as a technical course developer at DocuSign, where they focus on creating training materials for software developers.