Dojo : the definitive guide

cover image

Where to find it

Information & Library Science Library

Call Number
TK5105.8885.A52 H37 2008
Status
Available

Authors, etc.

Names:

Summary

Of all the Ajax-specific frameworks that have popped up in recent years, one clearly stands out as the industrial strength solution. Dojo is not just another JavaScript toolkit--it's the JavaScript toolkit--and Dojo: The Definitive Guide demonstrates how to tame Dojo's extensive library of utilities so that you can build rich and responsive web applications like never before. Dojo founder Alex Russell gives a foreword that explains the "why" of Dojo and of this book.

Dojo provides an end-to-end solution for development in the browser, including everything from the core JavaScript library and turnkey widgets to build tools and a testing framework. Its vibrant open source community keeps adding to Dojo's arsenal, and this book provides an ideal companion to Dojo's official documentation.

Dojo: the Definitive Guide gives you the most thorough overview of this toolkit available, showing you everything from how to create complex layouts and form controls closely resembling those found in the most advanced desktop applications with stock widgets, to advanced JavaScript idioms to AJAX and advanced communication transports. With this definitive reference you get:

Get a concise introduction to Dojo that's good for all 1.x versions Well-explained examples, with scores of tested code samples, that let you see Dojo in action A comprehensive reference to Dojo's standard JavaScript library (including fundamental utilities in Base, Dojo's tiny but powerful kernel) that you'll wonder how you ever lived without An extensive look at additional Core features, such as animations, drag-and-drop, back-button handling, animations like wipe and slide, and more Exhaustive coverage of out-of-the-box Dijits (Dojo widgets) as well as definitive coverage on how to create your own, either from scratch or building on existing ones An itemized inventory of DojoX subprojects, the build tools, and the DOH, Dojo's unit-testing framework that you can use with Dojo--or anywhere else

If you're a DHTML-toting web developer, you need to read this book--whether you're a one-person operation or part of an organization employing scores of developers. Dojo packs the standard JavaScript library you've always wanted, and Dojo: The Definitive Guide helps you transform your ideas into working applications quickly by leveraging design concepts you already know.

Contents

  • Foreword p. xiii
  • Preface p. xv
  • Part I Base and Core
  • 1 Toolkit Overview p. 3
  • Overview of Dojo's Architecture p. 3
  • Prepping for Development p. 7
  • Terminology p. 12
  • Bootstrapping p. 15
  • Exploring Dojo with Firebug p. 21
  • Summary p. 31
  • 2 Language and Browser Utilities p. 32
  • Looking Up DOM Nodes p. 32
  • Type Checking p. 33
  • String Utilities p. 34
  • Array Processing p. 35
  • Managing Source Code with Modules p. 40
  • JavaScript Object Utilities p. 48
  • Manipulating Object Context p. 52
  • DOM Utilities p. 55
  • Browser Utilities p. 62
  • Summary p. 66
  • 3 Event Listeners and Pub/Sub Communication p. 67
  • Event and Keyboard Normalization p. 67
  • Event Listeners p. 70
  • Publish/Subscribe Communication p. 76
  • Summary p. 79
  • 4 AJAX and Server Communication p. 80
  • Quick Overview of AJAX p. 80
  • AJAX Made Easy p. 82
  • Deferreds p. 89
  • Form and HTTP Utilities p. 98
  • Cross-Site Scripting with JSONP p. 99
  • Core IO p. 101
  • JSON Remote Procedure Calls p. 110
  • OpenAjax Hub p. 112
  • Summary p. 113
  • 5 Node Manipulation p. 114
  • Query: One Size Fits All p. 115
  • NodeList p. 121
  • Creating NodeList Extensions p. 130
  • Behavior p. 131
  • Summary p. 135
  • 6 Internationalization (i18n) p. 136
  • Introduction p. 136
  • Internationalizing a Module p. 137
  • Dates, Numbers, and Currency p. 140
  • Summary p. 143
  • 7 Drag-and-Drop p. 144
  • Dragging p. 144
  • Dropping p. 155
  • Summary p. 164
  • 8 Animation and Special Effects p. 165
  • Animation p. 165
  • Core fx p. 176
  • Animation + Drag-and-Drop = Fun! p. 185
  • Colors p. 186
  • Summary p. 194
  • 9 Data Abstraction p. 196
  • Shifting the Data Paradigm p. 196
  • Data API Overview p. 197
  • The APIs p. 198
  • Core Implementations of Data APIs p. 204
  • Summary p. 221
  • 10 Simulated Classes and Inheritance p. 222
  • JavaScript Is Not Java p. 222
  • One Problem, Many Solutions p. 223
  • Simulating Classes with Dojo p. 227
  • Multiply Inheriting with Mixins p. 237
  • Summary p. 241
  • Part II Dijit and Util
  • 11 Dijit Overview p. 245
  • Motivation for Dijit p. 245
  • Accessibility (a11y) p. 248
  • Dijit for Designers p. 251
  • The Parser p. 257
  • Hands-on Dijit with NumberSpinner p. 261
  • Overview of Stock Dijits p. 266
  • Dijit API Drive-By p. 270
  • Summary p. 271
  • 12 Dijit Anatomy and Lifecycle p. 272
  • Dijit Anatomy p. 272
  • Dijit Lifecycle Methods p. 275
  • Your First Dijit: HelloWorld p. 282
  • Parent-Child Relationships with_Container and_Contained p. 293
  • Rapidly Prototyping Widgets in Markup p. 293
  • Summary p. 295
  • 13 Form Widgets p. 297
  • Drive-By Form Review p. 297
  • Form Dijits p. 300
  • TextBox Variations p. 304
  • FilteringSelect p. 323
  • MultiSelect p. 324
  • Textarea Variations p. 325
  • Button Variations p. 325
  • Slider p. 333
  • Form p. 338
  • Summary p. 339
  • 14 Layout Widgets p. 340
  • Layout Dijit Commonalities p. 340
  • ContentPane p. 342
  • BorderContainer p. 346
  • StackContainer p. 351
  • TabContainer p. 353
  • AccordionContainer p. 355
  • Rendering and Visibility Considerations p. 357
  • Summary p. 358
  • 15 Application Widgets p. 359
  • Tooltip p. 359
  • Dialog Widgets p. 360
  • ProgressBar p. 364
  • ColorPalette p. 366
  • Toolbar p. 367
  • Menu p. 369
  • TitlePane p. 374
  • InlineEditBox p. 375
  • Tree p. 377
  • Editor p. 388
  • Summary p. 395
  • 16 Build Tools, Testing, and Production Considerations p. 396
  • Building p. 396
  • Dojo Objective Harness (DOH) p. 407
  • Browser-Based Test Harness p. 411
  • Performance Considerations p. 413
  • Summary p. 415
  • A A Firebug Primer p. 417
  • B A Brief Survey of DojoX p. 428
  • Index p. 431

Other details