JavaScript for Web Warriors
Book information
Description
Cover Brief Contents Contents Preface Chapter 1: Introduction to JavaScript Exploring the JavaScript Language Writing a JavaScript Program Writing Basic JavaScript Code Building Expressions with Variables Understanding Events Structuring JavaScript Code Creating a JavaScript Source File Validating Web Pages Summary Key Terms Review Questions Hands-On Projects Case Projects Chapter 2: Working with Functions, Data Types, and Operators Working with Functions Defining a Function Writing a Function Calling a Function Returning a Value from a Function Managing Events with Functions Using Event Handlers Events as Object Properties Event Listeners Events and Anonymous Functions Applying a Function to an Event Using Built-in JavaScript Functions Understanding Variable Scope let and var Declaration Scopes Local and Global Scope Working with Data Types Working with Numeric Values Working with Boolean Values Working with Strings Escape Characters and Sequences Using Operators to Build Expressions Arithmetic Operators Assignment Operators Comparison Operators Conditional Operators Understanding Falsy and Truthy Values Logical Operators Special Operators Understanding Operator Precedence Using Expressions with Web Form Controls Working with Input Control Values Working with Checkboxes Using the change Event with Web Form Controls Locating Errors with the Browser Console Accessing the Browser Console Locating an Error in Your Program Summary Key Terms Review Questions Hands-On Projects Case Projects Chapter 3: Building Arrays and Controlling Flow Storing Data in Arrays Declaring and Initializing Arrays Elements and Indexes Creating an Array Multidimensional Arrays Exploring HTML Collections Referencing an Element within a Collection Searching through the DOM Viewing Arrays and HTML Collections with the Console Working with Program Loops The while Loop The do while Loop The for Loop Writing a for Loop Exploring Array Methods for Generating Loops Adding Decision Making to Your Code The if Statement The if else Statement The else if Statements Nested if and if else Statements Conditional Statements and Browser Testing The switch Statement Managing Program Loops and Conditional Statements The break Statement The continue Statement Statement Labels Summary Key Terms Review Questions Hands-On Projects Case Projects Chapter 4: Debugging and Error Handling Introduction to Debugging Load-Time Errors Runtime Errors Logic Errors Starting Debugging with the Browser Console Running Javascript in Strict Mode Tracing Errors to Their Source Tracing Errors with the window.alert() Method Tracing Errors with the Console Log Using Comments to Locate Bugs Tracking Program Flow with Debugging Tools Accessing your Browser’s Debugging Tools Adding and Removing Break Points Stepping through the Program Execution Tracking Variables and Expressions Examining the Call Stack Managing Errors Handling Exceptions with the try catch Statement Throwing an Exception The try catch finally Statement The error Parameter in the catch Statement Applying Exception Handling to a Program Customizing Your Error Handling Catching Errors with the error Event Error Handling Functions Summary Key Terms Review Questions Hands-On Projects Case Projects Chapter 5: Creating a Web App Using the Document Object Model Designing a Web App Introducing Nodes Restructuring a Node Tree Running Timed Commands Working with Popup Windows Creating an Overlay Exploring the Browser Object Model Summary Key Terms Review Questions Hands-On Projects Case Projects Chapter 6: Enhancing and Validating Forms Exploring Forms and Form Elements Working with Selection Lists Working with Option Buttons Formatting Data Values in a Form Responding to Form Events Working with Hidden Fields Exploring Form Submission Validating Form Data with JavaScript Testing a Form Field Against a Regular Expression Creating a Custom Validity Check Managing Form Validation Summary Key Terms Review Questions Hands-On Projects Case Projects Chapter 7: Manipulating Data in Strings, Arrays, and Other Objects Retrieving Content from a Text File Working with Text Strings Introducing Regular Expressions Programming with Regular Expressions Exploring Array Methods Exploring the Math Object Exploring the Date Object Exploring Template Literals Summary Key Terms Review Questions Hands-On Projects Case Projects Chapter 8: Creating Customized Objects, Properties, and Methods Understanding Object-Oriented Programing Creating an Object Literal Working with Object Classes Working with Object Prototypes Introducing Closures Working with Public, Private, and Privileged Methods Combining Objects with Prototype Chains Data Storage with Associative Arrays Summary Key Terms Review Questions Hands-On Projects Case Projects Chapter 9: Managing State Information and Security Understanding Sessions and State Information Sharing Data Between Forms Introducing Web Storage Storing Data in Web Storage Introducing Cookies Writing Data into a Cookie Reading a Cookie Deleting a Cookie Exploring Security Issues Summary Key Terms Review Questions Hands-On Projects Case Projects Chapter 10: Programming with Event Objects and Third-Party APIs Working with Events as Objects Exploring Mouse, Touch, and Pointer Events Programming a Drag and Drop Action Exploring the Drag and Drop API Working with Keyboard Events Creating an Interactive Map Mapping Your Position with Geolocation Adding Directions to a Map Introducing the Device Orientation API Preparing an App for Mobile Use Summary Key Terms Review Questions Hands-On Projects Case Projects Chapter 11: Managing Data Requests with AJAX and Fetch Introducing Server Requests Exploring HTTP Messages Introducing AJAX Viewing the Status of a Request and Response AJAX and Callback Hell Introducing Arrow Functions Exploring the Promise Object Using the Fetch API Working with XML Creating an Autocomplete Search Box Working with Third-Party APIs Exploring Security Issues with APIs Summary Key Terms Review Questions Hands-On Projects Case Projects Chapter 12: Introducing jQuery Getting Started with jQuery Working with jQuery Selectors Handling Events with jQuery Working with Effects and Animations Exploring jQuery Plugins Summary Key Terms Review Questions Hands-On Projects Case Projects Appendix A: Installing andConfiguring aTesting Server Appendix B: Working withHTML and CSS Glossary Index
Similar books
MySQL® Notes for Professionals book
2018 · PDF
MrExcel 2022: Boosting Excel
2022 · PDF
MrExcel 2022: Boosting Excel
2022 · PDF
Session C11: Ancient Cultural Landscapes in South Europe – their Ecological Setting and Evolution, Session C22: Gardeners from South America, Session S04: Agro-Pastoralism and Early Metallurgy Sessions, Session WS29: The Idea of Enclosure in Recent Iberian Prehistory, Session C88: Rhytmes et causalites des dynamiques de l'anthropisation en Europe entre 6500 ET 500 BC: Hypotheses socio-culturelles et/ou climatiques: Proceedings of the XV UISPP World Congress (Lisbon 4-9 September 2006) / Actes du XV Congrès Mondial (Lisbonne 4-9 Septembre 2006) Vol.36
2010 · PDF
THE BRITISH ARMY IN INDIA: ITS PRESERVATION BY AN APPROPRIATE CLOTHING, HOUSING, LOCATING, RECREATIVE EMPLOYMENT, AND HOPEFUL ENCOURAGEMENT OF THE TROOPS. with AN APPENDIX ON INDIA : THE CLIMATE OP ITS HILLS ; THE DEVELOPMENT OF ITS RESODRCBS, INDUSTRY, AND ARTS ; THE ADMINISTRATION OF JUSTICE ; THE BLACK ACT ; THE PROGRESS OF CHRISTIANITY ; THE TRAFFIC IN OPIUM ; THE VALUE OF INDIA ; PERMANENT CAUSES OF DISAFFECTION, AND OF THE RECENT REBELLION ; THE TRADITIONARY POLICY; MISGOVERNMENT BY NATIVE RULERS ; ANNEXATIONS OF THEIR TERRITORY, ETC.
1858 · PDF
Idries Shah 27 Books Collection : A Perfumed Scorpion, A Veiled Gazelle, Caravan of Dreams, Darkest England, Destination Mecca, Evenings with Idries Shah, Knowing How to Know, Learning How to Learn, Letters and Lectures of Idries Shah, Neglected aspects of Sufi study, Observations, Oriental Magic, Reflections, Seeker after Truth, Special Illumination, Special Problems in the study of Sufi ideas, Sufi thought and action, Tales of the Dervishes, The Dermis Probe, The Elephant in the Dark, The Englishman Handbook, Idries Shah Antology, The Magic Monastery, The natives are restless, wisdom of the Idiots PDF.
2022 · PDF
The travels of Capts. Lewis and Clarke from St. Louis, by way of the Missouri and Columbia rivers, to the Pacific ocean; performed in the years 1804, 1805 & 1806, by order of the government of the United States. Containing delineations of the manners, customs, religion, &c. of the Indians, comp. from various authentic sources, and original documents, and a summary of the Statistical view of the Indian nations, from the official communication of Meriwether Lewis. Illustrated with a map of the country, inhabited by the western tribes of Indians
1809 · PDF
Professional Linux kernel architecture ''Wrox programmer to programmer''--Cover. - ''What you are reading right now is the result of an evolution over more than seven years: After two years of writing, the first edition was published in German by Carl Hanser Verlag in 2003. It then described kernel 2.6.0. The test was used as a basis for the low-level design documentation for the EAL4+ security evaluation of Red Hat Enterprise Linux 5, requiring to update it to kernel 2.6.18 (if the EAL acronym does not mean anything to you, then Wikipedia is once more your friend). Hewlett-Packard sponsored the translation into English and has, thankfully, granted the rights to publish the result. Updates to kernel 2.6.24 were then performed specifically for this book''--P. ix
2008 · PDF