By Addy Osmani (254 pages)
- Learn the structure of design patterns and how they are written
- Understand different pattern categories, including creational, structural, and behavioral
- Use several options for writing modular code—including the Module pattern, Asynchronous Module Definition (AMD), and CommonJS
- Discover design patterns implemented in the jQuery library
- Learn popular design patterns for writing maintainable jQuery plug-ins
The 4 books:
- Backbone – continues building the website using Backbone.js to create single-page interfaces for some more complex user interaction
- Ember – builds out completely different parts of the website using Ember.js to create complex client-side interactions
By Cody Lindley (180 pages)
DOM Enlightenment teaches you how to manipulate HTML more efficiently by scripting the Document Object Model (DOM) without a DOM library. Using code examples in cookbook style, the author explains modern DOM concepts to illustrate how various node objects work.
The book is targeted at developers who want to understand the purpose and value provided by jQuery for scripting the DOM. The author also wants to help developers tasked with scripting web documents that only run on modern browsers.
- Node overview – examines node object types, properties and methods for working nodes, getting a nodes value and more
- Document nodes – includes document child nodes, detecting DOM specifications/features using document.implementation.hasFeature()
- Element nodes – create elements, get the tag name of an element, verifying an element has a specific attribute and more
- Element node selecting – selecting/creating a NodeList, contextual element selecting, and more
- Element node geometry & scrolling geometry – shows how to use getBoundingClientRect(), elementFromPoint(), scrollHeight, scrollWidth, scrollIntoView()
- Element nodes inline style – CSS properties
- Text nodes – good treatment on manipulating text
- DocumentFragment nodes – creation and use of DocumentFragment nodes
- CSS style sheets & CSS rules – including how to create a new inline CSS style sheet
- DOM events – DOM event types, the event flow, adding event listeners to element nodes, window object, and document object
- Creating dom.js
The DOM Enlightenment HTML version is released under a Creative Commons Attribution-Noncommercial-No Derivative Works 3.0 unported license.
By Rebecca Murphey (108 pages)
- jQuery basics – selecting elements, choosing selectors, refining & filtering selections, working with selections, CSS and more
- jQuery core – utility methods, checking types, data methods, feature & browser detection, and more
- Events – jQuery provides simple methods for attaching event handlers to selections
- Effects – use the built-in settings, or provide a customized duration. You can also create custom animations of arbitrary CSS properties
- Plugins – how to create a basic plugin, finding & evaluating plugins, writing plugins, and writing stateful plugins with the jQuery UI widget factory
- Code Organization – looks at various code organization patterns you can use in your jQuery application and explores the RequireJS dependency management and build system
- Custom Events – illustrates jQuery’s custom events system to make a simple Twitter search application
The book is licensed under the Creative Commons Attribution-Share Alike 3.0 United States license.
By Addy Osmani (374 pages)
Learn the essentials of Backbone’s models, views, collections, events, and routers. The book also looks at two popular Backbone add-ons: MarionetteJS and Thorax. Marionette simplifies your Backbone application code with robust views and architecture solutions. Thorax is used to build meaty Backbone applications.
The book is targeted at novice to intermediate developers. It is released under a Creative Commons Attribution-Noncommercial-No Derivative Works 3.0 United States License.