Nov 16, 2008
Official_photo_small Craig Riecke 17 posts

Topic: Mastering Dojo / Chapter 3 - blank cigars

Sorry for the delay. Generally when you get ?’s it means the data isn’t being fed in. The best way to debug is through Firebug – if you have permissions problems or 404’s with the JSON file, the console will tell you. I’d also try retrieving the JSON file through its direct URL. That will tell you if any filtering is going on.

 
Sep 7, 2008
Official_photo_small Craig Riecke 17 posts

Topic: Mastering Dojo / Grid Model

Yup, are you seeing a problem in it?

 
Sep 7, 2008
Official_photo_small Craig Riecke 17 posts

Topic: Mastering Dojo / Chapter 1: Toaser example displays differently for IE and FF

That is correct, they should be the same. But I’m seeing an [Object error] message in IE7 like you are. So I filed a bug report and attached this program as a test case. The fix may be too late to go into 1.2, but with any luck it’ll be in 1.3.

 
Sep 7, 2008
Official_photo_small Craig Riecke 17 posts

Topic: Mastering Dojo / Page 267, FilteringSElect example is wrong

Yep, you are right. The searchAttr should be “substance” as well. Fortunately, Dijit acts correctly in either case, sending the id value rather than the label back to the server.

 
Sep 7, 2008
Official_photo_small Craig Riecke 17 posts

Topic: Mastering Dojo / wish list grid sample on page 54 has problems with IE7

Hmmm. I retried all the grid examples in IE7, and none of them exhibit that behavior. They all work fine. I’m testing them in IE 7.0.6001.18000 if that makes any difference. Also, are you using the final copy of the book? Page 54 of mine is the middle of an example, and I’m not sure it’s what you meant.

 
Sep 7, 2008
Official_photo_small Craig Riecke 17 posts

Topic: Mastering Dojo / dojo data chapter examples not working

We did Q/A, but unfortunately just a bit too early. Part of the release process for the code was to add the boilerplate copyright notices to each file. We didn’t think to do Q/A after that – after all, it’s just a comment, right? Turns out this confuses Dojo in a few places simply because some files that look like code are in fact data. JSON is a perfect example.

I’ll try to get this into the Q/A process for Pragmatic Books in general.

 
Sep 7, 2008
Official_photo_small Craig Riecke 17 posts

Topic: Mastering Dojo / Yahoo Answers (p.472) is not working in FF

My apologies for the lateness here.

The issue is the copyright notice that was auto-inserted into ask.html, the widget template. Evidently Firefox considers this comment one of the root nodes of the DOM tree. That’s probably the correct interpretation, technically. But just get rid of the comment and it works fine.

 
Aug 2, 2008
Official_photo_small Craig Riecke 17 posts

Topic: Mastering Dojo / Chapter 1: example form elements not aligned correctly

Actually, that’s my bad. I should’ve made all the INPUT boxes as dijit.form.TextBox elements. That’ll fix the alignment and make the boxes the same color/style as the dijit.form.ValidatingTextBoxes. Plus, you can change the Tundra theme to something else without having to hack another CSS.

 
Apr 26, 2008
Official_photo_small Craig Riecke 17 posts

Topic: Mastering Dojo / Grid Model

Yup, that’s a feature of 1.1. You can still do things the old way (specify a model in a separate tag), but most people using Grid were using dojo.data stores. By embedding the store attribute directly in the Grid tag, you only need two objects (datastore, grid) as opposed to three objects (datastore, model, grid) .

That wasn’t very clear, so I added some notes on it. They should appear in Beta 4, due in early May. (Which will be the last beta and, essentially, the book as it will appear in print!)

 
Apr 26, 2008
Official_photo_small Craig Riecke 17 posts

Topic: Mastering Dojo / Validating stuff looks weird in Firefox

Ah, got it now. Use dot-star-atSign-dot-star and you’ll be all set. Correction will be made formally in beta 4 (the last beta, which will come out in very early May). Thank you!

 
Apr 26, 2008
Official_photo_small Craig Riecke 17 posts

Topic: Mastering Dojo / Dojo Offline Support?

Well, ... we’re just about finished and it’s at 570 pages. If we had added a Dojo offline chapter we would’ve had to jack up the price of the book. However, like with most things in Dojo, I’m finding uses for Offline in unexpected places, and plan to log my exploits on http://smokeorangework.blogspot.com, which is syndicated on Amazon.

 
Mar 12, 2008
Official_photo_small Craig Riecke 17 posts

Topic: Mastering Dojo / Validating stuff looks weird in Firefox

Hmmm. I developed that one in Firefox 2.x/Linux, so it should be OK. Do you happen to be using an older or newer version? (The word is that Dojo 1.0 has a few problems with Firefox 3, but Dojo 1.1 will solve them. 1.1 is due in a a few weeks).

If not, could you post a screen shot?

 
Mar 12, 2008
Official_photo_small Craig Riecke 17 posts

Topic: Mastering Dojo / DojoX Wire

Sure We were batting around this idea a few days ago. So hearing that people want it, we’ll put it in!

 
Mar 12, 2008
Official_photo_small Craig Riecke 17 posts

Topic: Mastering Dojo / Small typo

Yep. Just click the Errata link on the bottom of the page with the error. Meanwhile, Glenn, no need to “errata” the 3 above – I’ve got them fixed for the next beta.

Thanks for the compliment too!

 
Mar 4, 2008
Official_photo_small Craig Riecke 17 posts

Topic: Mastering Dojo / Dojo css

Yep! That’s in the Design and Themes chapter, which is scheduled to go into the beta in a few weeks. In Dojo 1.0, you don’t have to include anything – browser sniffing is part of Core. You just pop in .dj_ie, etc. in your style sheets to do browser-specific style fixes.

 
Mar 4, 2008
Official_photo_small Craig Riecke 17 posts

Topic: Mastering Dojo / DojoX Wire

I have heard lots of buzz about DojoX Wire, and can see its usefulness. But it’s also fairly young (about a year, if I remember right), and so it didn’t make the cut for this edition of Mastering Dojo. We had a hard time cramming the material we have into 500 pages, unfortunately.

Personally, I’ll be watching how developers integrate Wire with widgets. If that takes off the way that DTL (Django Template Language) support in Dojo has, that’d be excellent.

 
Feb 10, 2008
Official_photo_small Craig Riecke 17 posts

Topic: Mastering Dojo / Dojo Offline Support?

Hey Nikos! We’re definite fans of the Pragmatic style too, and the book will reflect that.

Sorry to tell you, but Dojo Offline isn’t going to make it into this book. Mostly we were concerned about page count and some of the cuts we made were heartbreaking, including this one.

17 posts