Friday, May 9th, 2008
Exclusive Mastering Dojo Chapters
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:
-
-
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.













Great code.
thanks
http://www.examinationonline.com/
Who think that Dojo is the fastest javascript framework?
Snowcoredotnet: I’m not sure what metrics you’re asking for exactly, but Dojo holds its own when compared with other popular toolkits. For example, take a look at the results of http://mootools.net/slickspeed/ . If you have a specific point with regards to performance that you are curious about, please let me know.