DOM
??? DED|Chain
Let??™s discuss each library in more detail to see how it can be used in your next project.
Dojo
Dojo (http://dojotoolkit.com) is a large library focused on easing the web application development
process by having widgets and other interface elements easily dropped into any
project. Here??™s a description from the Dojo web site:
Dojo enables you to easily build dynamic capabilities into web pages and any other
environment that supports JavaScript sanely. You can use the components that Dojo
provides to make your web sites more usable, responsive, and functional.With Dojo you
can build degradable user interfaces more easily, prototype interactive widgets quickly,
and animate transitions.
CHAPTER 4 n LIBRARIES 86
The Dojo library focuses on creating a platform on which to build desktop-like web applications
like the e-mail example shown in Figure 4-2. It can be daunting and would certainly be
overkill if all you ever need to do is add some animation to your blog.
Figure 4-2. A Dojo example that uses many of the widgets available within the toolkit
Dojo covers all three of the key areas that libraries attempt to address: it smoothes the
rough terrain of working with the DOM, it includes many application conveniences, and it
includes many prebuilt widgets.
Prototype
Prototype (http://prototypejs.org) was one of the first libraries to gain widespread popularity
and helped popularize many of the JavaScript techniques used today.
Pages:
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148