Read more

Variable Properties

The shortest cookie ever: How to assign properties from variable hashes, or: Why dotted notation rocks.
Read the rest of this entry »

Read more

Submitting dijit.Editor’s content in a form

Here's a simple HOWTO to submit your editor content inside a form tag. There are other ways to do this, but this is what I do.
Read the rest of this entry »

Read more

dojo.hitch and scope - more romance

Scope in javascript is one of those topics that won't go away. It continues to trip people up again and again, despite numerous articles including a great cookie right here on dojo campus. In this cookie, I'm going to sneak up on dojo.hitch from a different angle by re-visiting some of the basics of how function scope works.
Read the rest of this entry »

Read more

Dates to remember

Dealing with dates in software can be trickier than it seems.  The web and Javascript add to the challenge.  Because your code is on the web, users are likely to execute it in a variety of platforms in different locales and time zones, and Javascript isn't always helpful abstracting these issues in development.  Javascript has got a bunch of quirks of its own related to dates, perhaps worthy of their own cookies, but it's got a reasonably straightforward API.  Read the rest of this entry »

Read more

Making Browser Sense … dojo.isBrowser?

Every now and then, you're going to run into a problem with a particular browser (I'm sure you know what I'm talking about), and so you need your JavaScript to adjust accordingly. Browser detection is the answer and here's a short cookie on how you can do it using Dojo. Read the rest of this entry »