Exclusive Mastering Dojo Chapters

Written by on May 9th, 2008 in Ajax News.

Craig Riecke, Rawld Gill, and Alex Russell, along with the Pragmatic Programmers themselves have been kind enough to give the Ajaxian community some exclusive extracts from the Mastering Dojo beta book.

What do we have on the docket?

First, we have details on the Dojo DOM Apis. Specifically, the author takes us through a challenge involving interview questions and manipulating the DOM for them. We end up seeing code that uses dojo.query, and class addition such as:

JAVASCRIPT:

  1.  
  2. function layout1(){
  3.   dojo.addClass(dojo.query(”form> p”)[0], “formTitle”);
  4.   dojo.query(”div.questions p”).forEach(function(node, i) {
  5.     dojo.addClass(node, (i % 2) ? “lightBand” : “darkBand”);
  6.   });
  7. }
  8.  

It then delves into the intricacies of dojo.query and beyond.

Secondly, we have Ajax the Dojo way which takes us on a trip down dojo.data and dojox.Grid lane… two differentiating features that Dojo comes with. The chapter builds a wishlist system using these features.

There is a lot lot more in the book, which the table of contents covers for you. There are 400 pages of material here that cover the huge variety that exists within the Dojo community.

Thanks to the authors and the editor for sharing this with us.

Source: Ajaxian
Original Article: http://feeds.feedburner.com/~r/ajaxian/~3/287177795/exclusive-mastering-dojo-chapters

Comments are closed.



Site Navigation