Posts Tagged ‘DOM’

Read more

What is a _Widget

There has never been a more generic term than “widget”. As a teen in economics class our theoretical compaines sold widgets, and almost anything on earth without description falls into a “thinger” category … I’m here to give API stability to the word “widget”, and poke around the idea of “template” in Dojo. I will call it Dijit.

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 »