JavaScript programmer's reference

JavaScript Programmer's Reference is an invaluable resource that won't stray far from your desktop (or your tablet!). It contains detailed information on every JavaScript object and command, and combines that reference with practical examples showcasing how you can use those commands in th...

Descripción completa

Detalles Bibliográficos
Autor principal: Reid, Jonathan (-)
Otros Autores: Valentine, Thomas
Formato: Libro electrónico
Idioma:Inglés
Publicado: [Berkeley, Calif.] : Apress 2013.
Edición:1st ed. 2013.
Colección:The expert's voice in Web development JavaScript programmer's reference
Materias:
Ver en Biblioteca Universitat Ramon Llull:https://discovery.url.edu/permalink/34CSUC_URL/1im36ta/alma991009628726206719
Tabla de Contenidos:
  • Cover; Title Page; Copyright Page; Dedication Page; Contents at a Glance; Table of Contents; About the Authors; About the Technical Reviewer; Introduction; Who is this book for?; Overview; Conventions Used In This Book; Code Downloads; CHAPTER 1 JavaScript Basics; Hard to Learn, Harder to Love; What Is JavaScript?; The Evolution of JavaScript and the ECMA-262 Standard; JavaScript Implementations; Web Browsers and JavaScript; JavaScript in Web Pages; Order of Execution; Brief Digression: Understanding and Running Examples; Running the Examples; JavaScript's Three Difficult Features
  • Prototypal InheritanceScoping in JavaScript; Limiting Scope; Closures; One of Those Weak Types, Eh?; Basic Data Types and Primitives; Type Conversion in JavaScript; Putting It Together: Two Common Patterns; Immediately Executing Function Expressions; The Module Pattern; Summary; CHAPTER 2 JavaScript Nuts and Bolts; Formatting JavaScript Code; Relying on ASI; Be Consistent; Expressions and Statements; Expressions; Statements; Operators; Precedence; Variables; Declaring Variables in JavaScript; Understanding Variable Scope in JavaScript; Managing Variables in JavaScript; Objects; Inheritance
  • Accessing Properties and EnumerationCreating Objects; Using Constructor Functions; Using Literals; Using Object.create( ); Which Method Should I Use?; Arrays; Dynamic Length; Accessing and Assigning Values; Creating Arrays; Iterating over Arrays; Array Methods and Properties; Functions; Function Declarations; Function Expressions; Invoking Functions; Invoking Functions Using the Invoker; Invoking Functions As Constructors; Invoking Functions Using apply() and call(); Conditionals; if Statements; switch Statements; Loops; for Loops; for-in Loops; while Loops; do Loops; Summary
  • CHAPTER 3 The DOMHow I Learned to Stop Worrying and Love the DOM; History of the DOM Standard; Browser Dependencies; DOM Structure; Accessing Elements in the DOM; Traversing the DOM; Modifying the DOM; Modifying Existing Elements; Modifying Styles; Modifying Content; Creating New Elements; Deleting Elements; DOM Events; Event Phases; Event Execution Context; Different Events; Binding Event Handlers; Unbinding Event Handlers; The Event Object; Event Delegation; Manually Firing Events; Creating an Event Object; Configuring an Event Object; Dispatching an Event; Custom Events
  • Cross-Browser StrategiesSummary; CHAPTER 4 JavaScript in Action; Working with JavaScript; JavaScript IDEs; aptana studio; Eclipse; Microsoft Visual Web Developer and Visual Studio Express; WebStorm; Browsers; Chrome; Firefox; Internet Explorer; Safari; Web Servers; MacOS; Windows; Xampp; IDE Debugging Servers; JavaScript Development Workflow; Using the Browser Console; Breakpoints; Loading Scripts Efficiently; How Browsers Download and Process Content; Optimization Tip #1: Load Scripts at the End of the Document; Optimization Tip #2: Combine, Minify, and GZip
  • Optimization Tip #3: Load Scripts In the Document Head Using a Non-Blocking Technique