-
Website
http://blog.garethj.com/ -
Original page
http://blog.garethj.com/2008/07/03/dojo-checkboxes/ -
Subscribe
All Comments -
Community
-
Top Commenters
-
Popular Threads
-
Wireless on a Dell Mini 10v in Ubuntu 9.10
1 week ago · 3 comments
-
Indicator applet API changes in Ubuntu 9.10
2 weeks ago · 5 comments
-
Wireless on a Dell Mini 10v in Ubuntu 9.10
Here's the difference: dijit.byId() returns a Dijit widget instance - technically, an instance of dijit._Widget or one of its subclasses like dijit.Toolbar or dijit.TreeNode.
So here's the way to remember it:
* If you need a DOM Node, use dojo.byId. You need a DOM node anytime you call a standard browser function, change a standard property, etc.
* If you need a widget, use dijit.byId. From it you can access all of the attributes, methods and extension points listed in Part 2.
Useful stuff to know when using digit widgets.