Posts Tagged ‘Dojo’

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 »

Read more

Making a translatable login form

Today I’m going to show you how to use dojo’s built in translation system. For this example, I’m going to make a simple login form widget, that we can translate into both english and spanish (and other languages, if we choose). This form will also validate what the user puts into the form, and inject what the user inputted into the translated text itself.
Read the rest of this entry »

Read more

Dojo’s got style …

There’s a great little utility function in Dojo Core I use _everywhere_ that goes by the name dojo.style. It isn’t anything new to Dojo (or any JavaScript library for that matter) but in 1.1 it became exceptionally more useful and I’d like to take a second to delve into some of the innards and new features.

Read the rest of this entry »

Read more

Find out a method’s signature on the Firebug console

“Oh cool, I found this function in dojo that I was already looking for, but how do I call it?”

Remember saying that? I do!
Read the rest of this entry »

Read more

DOM nodes vs. Dojo widgets (dojo.byId vs. dijit.byId)

The headline pretty much reveals the secret. But let’s dive into the details anyway.
This cookie will try to explain the differences between dojo.byId(), dijit.byId(), dijit.byNode() and dijit.getEnclosingWidget(). And when you should use what and what you should expect them to return and where you can use them.
Read the rest of this entry »