Chapter 1. Our first single page application
Listing 1.1. A toe in the pool—spa.html
Listing 1.2. HTML and CSS—spa.html
Listing 1.3. JavaScript development, first pass—spa.html
Listing 1.4. Javascript development, second pass—spa.html
Listing 1.5. JavaScript development, third pass—spa.html
Chapter 2. Reintroducing JavaScript
Listing 2.1. Application JavaScript
Listing 2.2. The first pass
Listing 2.3. Variables are undefined before they are declared
Listing 2.4. Variables have a value before they’re declared
Listing 2.5. Execution context object—first pass
Listing 2.6. Execution context object—second pass
Listing 2.7. Scope chain example—regular_joe defined at each calling scope
Listing 2.8. Scope chain example—regular_joe defined only in one scope
Listing 2.9. Using Object.create to create objects
Listing 2.10. Use of Object.create with a factory function
Listing 2.11. Overwriting the prototype
Listing 2.12. Execution context objects
Chapter 3. Develop the Shell
Listing 3.1. Files and directories, first pass
Listing 3.2. Files and directories after adding jQuery and plugin
Listing 3.3. Application HTML—spa/spa.html
Listing 3.4. The root CSS namespace—spa/css/spa.css
Listing 3.5. The root JavaScript namespace—spa/js/spa.js
Listing 3.6. Create HTML for the containers—spa/layout.html
Listing 3.7. Create CSS for the containers—spa/layout.html
Listing 3.8. Concatenating the HTML template
Listing 3.9. Starting the Shell—spa/js/spa.shell.js