1.

Record Nr.

UNINA9910300647703321

Autore

Paxton John

Titolo

Pro JavaScript Techniques : Second Edition / / by John Paxton, John Resig, Russ Ferguson

Pubbl/distr/stampa

Berkeley, CA : , : Apress : , : Imprint : Apress, , 2015

ISBN

9781430263920

143026392X

Edizione

[2nd ed. 2015.]

Descrizione fisica

1 online resource (193 p.)

Collana

Expert's Voice

Disciplina

005.2762

Soggetti

Computer programming

Software engineering

Web Development

Software Engineering/Programming and Operating Systems

Lingua di pubblicazione

Inglese

Formato

Materiale a stampa

Livello bibliografico

Monografia

Note generali

Description based upon print version of record.

Nota di bibliografia

Includes bibliographical references and index.

Nota di contenuto

Contents at a Glance; Contents; About the Authors; About the Technical Reviewers; Acknowledgments; Chapter 1: Professional JavaScript Techniques;  How Did We Get Here?;  Modern JavaScript;  The Rise of Libraries ;  More Than a Note about Mobile;  Where Do We Go from Here?;  Coming Up Next;  Summary; Chapter 2: Features, Functions, and Objects;  Language Features;  References and Values ;  Scope;  Context;  Closures;  Function Overloading and Type-Checking ;  New Object Tools;  Objects;  Modifying Objects;  Summary; Chapter 3: Creating Reusable Code;  Object-Oriented JavaScript;  Inheritance

Member Visibility  The Future of Object-Oriented JavaScript;  Packaging JavaScript ;  Namespaces;  The Module Pattern;  Immediately Invoked Function Expressions;  Summary; Chapter 4: Debugging JavaScript Code;  Debugging Tools;  The Console;  Leveraging the Console Features;  The Debugger;  DOM Inspector;  Network Analyzer ;  Timeline ;  Profiler ;  Summary; Chapter 5: The Document Object Model;  An Introduction to the Document Object Model;  DOM Structure;  DOM Relationships;  Accessing DOM Elements;  Finding Elements by CSS Selector ;  Waiting for the HTML DOM to Load

Waiting for the Page to Load Waiting for the Right Event;  Getting the



Contents of an Element;  Getting the Text of an Element ;  Getting the HTML of an Element ;  Working with Element Attributes;  Getting and Setting an Attribute Value ;  Modifying the DOM;  Creating Nodes Using the DOM ;  Inserting into the DOM;  Injecting HTML into the DOM ;  Removing Nodes from the DOM;  Handling White Space in the DOM;  Simple DOM Navigation;  Summary; Chapter 6: Events;  Introduction to JavaScript Events;  The Stack, the Queue, and the Event Loop ;  Event Phases;  Binding Event Listeners

Traditional BindingAdvantages of Traditional Binding; Disadvantages of Traditional Binding;  DOM Binding: W3C; Advantages of W3C Binding ; Disadvantage of W3C Binding;  Unbinding Events;  Common Event Features;  The Event Object;  Canceling Event Bubbling;  Overriding the Browser's Default Action;  Event Delegation ;  The Event Object;  General Properties; type ;  target ; stopPropagation; preventDefault / returnValue = false;  Mouse Properties; pageX and pageY ;  clientXand clientY ;  layerX/layerY and offsetX/offsetY ;  button ;  relatedTarget ;  Keyboard Properties; ctrlKey ;  keyCode

shiftKey  Types of Events;  Page Events; load; beforeunload; error; resize; scroll;  unload ;  UI Events ; focus; blur;  Mouse Events; click; dblclick; mousedown; mouseup; mousemove; mouseover; mouseout;  mouseenter ;  mouseleave ;  Keyboard Events; keydown/keypress ; keyup;  Form Events; select; change; submit; reset;  Event Accessibility;  Summary; Chapter 7: JavaScript and Form Validation;  HTML and CSS Form Validation;  CSS;  JavaScript Form Validation;  Validation and Users;  Validation Events;  Customizing Validation;  Preventing Form Validation;  Summary

Chapter 8: Introduction to Ajax

Sommario/riassunto

Pro JavaScript Techniques is the ultimate JavaScript book for today's web developer. It provides everything you need to know about modern JavaScript, and teaches you what JavaScript can do for your web sites. This book doesn't waste any time looking at things you already know, but instead concentrates on fundamental, vital topics—what modern JavaScripting is (and isn't), and pitfalls to be wary of. You will learn about the 'this' keyword, as well as new object tools. You will be able to create reusable code with encapsulation, overloading and inheritance. The most recent techniques for debugging and testing are covered comprehensively, with information on Chrome developer tools, Jasmine, PhantomJS and Protractor. This update finishes with chapters on constructing single-page web applications that dominate the modern web. The book is filled with real-world examples and case studies, as well as numerous reusable functions and classes to save you time in your development. You will learn the practical skills needed to build professional, dynamic web applications. Pro JavaScript Techniques is an indispensable reference for any professional JavaScript web developer—enhance your JavaScript development today.