Exclusive Mastering Dojo Chapters
Date : 2008 05 09 Category : Tech & DevelopmentCraig 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:
PLAIN TEXT JAVASCRIPT:function layout1(){ dojo.addClass(dojo.query("form> p")[0], "formTitle"); dojo.query("div.questions p").forEach(function(node, i) { dojo.addClass(node, (i % 2) ? "lightBand" : "darkBand"); }); }
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.
