Book Image

Object-Oriented JavaScript

Book Image

Object-Oriented JavaScript

Overview of this book

Table of Contents (18 chapters)
Object-Oriented JavaScript
Credits
About the Author
About the Reviewers
Preface
Built-in Functions
Regular Expressions
Index

Index

A

  • aggregation /
  • AJAX /
  • anonymous function /
  • arguments, built-in objects /
  • arithmetic operators
    • + /
    • m- /
    • / /
    • % /
  • array, built-in objects
    • about /
    • array methods /
  • array constructor
    • about /
    • array object, members /
  • arrays
    • about /
    • elements, adding /
    • elements, updating /
    • elements, deleting /
    • of arrays /
  • assignment operators /
  • augmenting, built-in objects /

B

  • black box function /
  • BOM
    • about /
    • window object /
    • window.navigator object /
    • firebug console /
    • window.location /
    • window.history /
    • window.frames /
    • window.screen /
    • window.open() /
    • window.close() /
    • window.moveTo() /
    • window.moveBy() /
    • window.resizeTo() /
    • window.alert() /
    • window.prompt() /
    • window.confirm() /
    • window.setTimeout() /
    • window.setInterval() /
    • window.document /
    • exercise /
  • boolean, built-in objects /
  • boolean constructor
    • about /
  • booleans, primitive data types
    • about /
    • logical operators /
    • operator precedence /
    • lazy evaluation /
    • comparision operators /
  • borrowing, constructor /
  • built-in objects
    • data wrapper objects /
    • utility objects /
    • error objects /
    • object /
    • array() constructor function /
    • array methods /
    • function() constructor /
    • function objects, properties /
    • function objects, methods /
    • arguments object /
    • boolean() constructor /
    • number /
    • string() constructor /
    • string objects, methods /
    • math /
    • date() constructor /
    • date objects, methods /
    • RegExp() constructor /
    • RegExp objects, properties /
    • RegExp objects, methods /
    • string objects /
    • search() method /
    • match() method /
    • replace() method /
    • callbacks, replacing /
    • callback function /
    • split() method /
    • string passing, RegExp /
    • augmenting /
    • array /
    • function /
    • boolean /
    • string /
    • date /
    • RegExp /
  • built-in objects, augmenting /

C

  • callback function
    • about /
    • benefits /
  • classes /
  • closures
    • about /
    • scope chain /
    • lexical scope /
    • chain, breaking /
    • in loop /
    • getter function, creating /
    • setter function, creating /
    • iterator functionality /
  • code blocks, conditions
    • about /
    • if condition /
    • else if condition /
    • alternative if syntax /
    • switch statement /
  • coding pattern
    • about /
    • building blocks /
    • content. building blocks /
    • presentation, building blocks /
    • separating behavior, building blocks /
    • separating behavior, example /
    • namespaces /
    • object, creating as namespace /
    • namespace, constructors /
    • namespace() method /
    • Init-time branching pattern /
    • lazy definition pattern /
    • configuration object pattern /
    • private properties /
    • privileged methods /
    • private functions /
    • self-executing functions /
    • chaining pattern /
    • JSON pattern /
  • comments
    • types /
    • single line comments /
    • multi-line comments /
  • comparison operators
    • == /
    • === /
    • != /
    • !== /
    • > /
    • >= /
    • < /
    • <= /
  • compound operators /
  • conditions
    • about /
    • code blocks /
    • if condition /
    • else if condition /
    • switch statement /
  • constructor borrowing, inheritance
    • about /
    • prototype, copying /
  • Core DOM /

D

  • date, built-in objects /
    • about /
    • methods /
  • date constructor
    • about /
    • members /
    • date object, members /
  • deep copy /
  • design pattern
    • about /
    • singleton pattern /
    • singleton 2 /
    • global variable /
    • property of the constructor function /
    • in a private property /
    • factory pattern /
    • decorator pattern /
    • decorator pattern, example /
    • observer pattern /
  • DOM
    • levels /
    • about /
    • tree /
    • Inspector /
    • Core DOM /
    • HTML DOM /
    • nodes, accessing /
    • nodes, modifying /
    • nodes, creating /
    • nodes, removing /
    • HTML-only DOM objects /
    • exercise /
  • DOM Inspector /
  • DOM level 1 /
  • DOM level 2 /
  • DOM level 3 /
  • DOM tree /

E

  • encapsulation /
  • error object, built-in objects /
  • error objects
    • about /
    • members /
  • event propogation
    • about /
    • implications /
  • events
    • about /
    • event listener /
    • event handler /
    • inline HTML attributes /
    • element properties /
    • DOM event listeners /
    • capturing /
    • event propogation /
    • event capturing /
    • event bubbling /
    • event delegation /
    • propogation, stopping /
    • default behavior, disabling /
    • cross-browser event listeners /
    • types /
    • exercise /

F

  • function
    • about /
    • calling /
    • parameters, passing /
    • pre-defined functions /
    • that return functions /
    • redefining /
  • function, built-in objects
    • about /
    • properties /
    • methods /
  • function constructor
    • about /
    • function object, members /
  • function literal notation /
  • functions are data
    • anonymous function /
    • callback function /
    • callback, examples /
    • self-invoking functions /
    • inner (private) functions /
  • function scope /

H

  • HTML-only DOM objects
    • about /
    • document, accessing ways /
    • document.write() method /
    • document.cookie property /
    • document.title property /
    • document.referrer property /
    • document.domain property /
  • HTML DOM /

I

  • increment operators
    • ++ /
    • minusminus-- /
  • inheritance /
    • prototype chain /
    • prototype chain, example /
    • shared properties, moving to prototype /
    • prototype, inheriting /
    • F(), temporary constructor /
    • uber property /
    • properties, copying /
    • objects, copying by reference /
    • objects, inheriting from objects /
    • deep copy /
    • shallow copy /
    • object() function /
    • prototypal inheritance /
    • prototypal inheritance and copying properties /
    • multiple inheritance /
    • parasitic inheritance /
    • constructor, borrowing /
    • example /

J

  • JavaScript
    • history /
    • about /
    • uses /
    • function /
    • pre-defined functions /
    • scope of variables /
    • functions are data /
    • including, in HTML page /
    • coding pattern /
    • design pattern /

L

  • logical operators
    • ! logical NOT /
    • && logical AND /
    • | | logical OR /
  • loops
    • about /
    • types /
    • infinite loop /
    • while loops /
    • do-while loops /
    • for loops /
    • for-in loops /

M

  • math, built-in objects /
  • math constructor
    • about /
    • math object, members /
  • multiple inheritance
    • about /
    • mixins /

N

  • nodes accessing, DOM
    • document node /
    • documentElement /
    • child nodes /
    • attributes /
    • content accessing, innerText property used /
    • content accessing, innerHTML property used /
    • content accessing, nodeValue used /
    • shortcuts, accessing /
    • getElementsByTagName() method /
    • getElementByName() method /
    • getElementById() method /
    • nextSibling property /
    • previousSibling property /
    • firstChild property /
    • lastChild property /
    • walkDOM function /
  • nodes creating, DOM
    • about /
    • DOM-only method /
    • cloneNode() method /
    • insertBefore() method /
  • nodes modifying, DOM
    • about /
    • styles, modifying /
    • forms, modifying /
  • nodes removing, DOM
    • about /
  • null, primitive data types
    • about /
  • number, built-in objects /
  • number constructor
    • about /
    • members /
    • number object, members /
  • numbers, primitive data types
    • about /
    • octal number /
    • hexadecimal number /
    • exponent literals /
    • infinity /
    • NaN /

O

  • object, built-in objects /
  • object-oriented programming
    • about /
    • objects /
    • classes /
    • encapsulation /
    • aggregation /
    • inheritance /
    • polymorphism /
    • summary /
  • object constructor
    • about /
    • members /
    • object, members /
  • objects /
    • about /
    • elements /
    • properties /
    • methods /
    • hash /
    • associative array /
    • property, accessing /
    • methods, calling /
    • properties, altering /
    • methods, altering /
    • this value, using /
    • creating, constructor functions used /
    • global object /
    • constructor property /
    • instanceof operator /
    • factory() function /
    • passing /
    • comparing /
    • in firebug console /
  • operator precedence /
  • operators
    • about /
    • example /
    • arithmetic operators /
    • increment operators /
    • assignment operators /
    • compound operators /
    • logical operators /
    • comparison operators /

P

  • parasitic inheritance
    • about /
  • polymorphism /
  • pre-defined functions
    • parseInt() function /
    • parseFloat() function /
    • isNaN() function /
    • isFinite() function /
    • URI, encoding /
    • URI, decoding /
    • eval() function /
    • eval() function, drawbacks /
    • alert() function /
  • primitive data types
    • about /
    • typeof operator /
    • numbers /
    • strings /
    • booleans /
    • undefined /
    • null /
  • private function
    • benefits /
  • prototypal inheritance /
  • prototype, copying /
  • prototype chaining
    • about /
    • example /
    • shared properties, moving /
  • prototype property
    • about /
    • methods, adding /
    • properties, adding /
    • properties, using /
    • methods, using /
    • versus own property /
    • overwriting, with own property /
    • properties, enumerating /
    • propertyIsEnumerable() method /
    • hasOwnProperty() method /
    • isPrototypeOf() method /
    • _proto_link /
    • gotchas /
    • exercise /

R

  • RegExp, built-in objects
    • about /
    • properties /
    • methods /
    • string methods /
    • search() method, string object /
    • match() method, string object /
    • replace() method, string object /
    • split() method /
    • string, passing /
  • RegExp constructor
    • about /
    • RegExp object, members /
  • reserved words /

S

  • shallow copy /
  • string, built-in objects /
    • methods /
  • string constructor
    • about /
    • members /
    • string object, members /
  • strings, primitive data types
    • about /
    • string conversions /
    • special strings /

T

  • training environment, setting up
    • tools, collecting /
    • firebug console used /
  • typeof operator /

U

  • undefined, primitive data types
    • about /

V

  • variables
    • about /
    • using, steps /
    • declaring /
    • initializing /
    • case sensitivity /
  • variables scope /

X

  • XMLHttpRequest
    • about /
    • using, steps /
    • request, sending /
    • response, processing /
    • objects, creating in Internet Explorer 7 /
    • asynchronous /
    • XHR objects /
    • example /
    • exercise /