The Dojo Toolkit
----------------
Dojo is a portable JavaScript toolkit for web application developers and
JavaScript professionals. Dojo solves real-world problems by providing powerful
abstractions and solid, tested implementations.
Getting Started
---------------
To use Dojo in your application, download one of the pre-built editions from the
Dojo website, http://dojotoolkit.org. Once you have downloaded the file you
will need to unzip the archive in your website root. At a minimum, you will
need to extract:
src/ (folder)
dojo.js
iframe_history.html
To begin using dojo, include dojo in your pages by using:
<script type="text/javascript" src="/path/to/dojo.js"></script>
Depending on the edition that you have downloaded, this base dojo.js file may or
may not include the modules you wish to use in your application. To ensure that
they are available, use dojo.require() to request them. A very rich application
might include:
<script type="text/javascript" src="/path/to/dojo.js"></script>
<script type="text/javascript">
dojo.require("dojo.event.*"); // sophisticated AOP event handling
dojo.require("dojo.io.*"); // for Ajax requests
dojo.require("dojo.storage.*"); // a persistent local data cache
dojo.require("dojo.json"); // serialization to JSON
dojo.require("dojo.dnd.*"); // drag-and-drop
dojo.require("dojo.fx.*"); // animations and eye candy
dojo.require("dojo.widget.Editor"); // stable, portable HTML WYSIWYG
</script>
Note that only those modules which are *not* already "baked in" to dojo.js by
the edition's build process are requested by dojo.require(). This helps make
your application faster without forcing you to use a build tool while in
development. See "Building Dojo" and "Working From Source" for more details.
Compatibility
-------------
In addition to it's suite of unit-tests for core system components, Dojo has
been tested on almost every modern browser, including:
- IE 5.5+
- Mozilla 1.2+, Firefox 1.0+
- Safari 1.3.9+
- Konqueror 3.4+
- Opera 8.5+
Note that some widgets and features may not preform exactly the same on every
browser due to browser implementation differences.
For those looking to use Dojo in non-browser environments, please see "Working
From Source".
Documentation and Getting Help
------------------------------
Articles outlining major Dojo systems are linked from:
http://dojotoolkit.org/docs/
Toolkit APIs are listed in outline form at:
http://dojotoolkit.org/docs/apis/
And documented in full at:
http://manual.dojotoolkit.org/
The project also maintains a JotSpot Wiki at:
http://dojo.jot.com/
A FAQ has been extracted from mailing list traffic:
http://dojo.jot.com/FAQ
And the main Dojo user mailing list is archived and made searchable at:
http://news.gmane.org/gmane.comp.web.dojo.user/
You can sign up for this list, which is a great place to ask questions, at:
http://dojotoolkit.org/mailman/listinfo/dojo-interest
The Dojo developers also tend to hang out in IRC and help people with Dojo
problems. You're most likely to find them at:
irc.freenode.net #dojo
Note that 2PM Wed PST in this channel is reserved for a weekly meeting between
project developers, although anyone is welcome to participate.
Working From Source
-------------------
The core of Dojo is a powerful package system that allows developers to optimize
Dojo for deployment while using *exactly the same* application code in
development. Therefore, working from source is almost exactly like working from
a pre-built edition. Pre-built editions are significantly faster to load than
working from source, but are not as flexible when in development.
There are multiple ways to get the source. Nightly snapshots of the Dojo source
repository are available at:
http://archive.dojotoolkit.org/nightly.tgz
Anonymous Subversion access is also available:
%> svn co http://dojootoolkit.org/svn/dojo/trunk/
Each of these sources will include some extra directories not included in the
pre-packaged editions, including command-line tests and build tools for
constructing your own packages.
Running the command-line unit test suite requires Ant 1.6. If it is installed
and in your path, you can run the tests using:
%> cd buildscripts
%> ant test
The command-line test harness makes use of Rhino, a JavaScript interpreter
written in Java. Once you have a copy of Dojo's source tree, you have a copy of
Rhino. From the root directory, you can use Rhino interactively to load Dojo:
%> java -jar buildscripts/lib/js.jar
Rhino 1.5 release 3 2002 01 27
js> load("dojo.js");
js> print(dojo);
[object Object]
js> quit();
This environment is wonderful for testing raw JavaScript functionality in, or
even for scripting your system. Since Rhino has full access to anything in
Java's classpath, the sky is the limit!
Building Dojo
-------------
Dojo requires Ant 1.6.x in order to build correctly. While using Dojo from
source does *NOT* require that you make a build, speeding up your application by
constructing a custom profile build does.
Once you have Ant and a source snapshot of Dojo, you can make your own profile
build ("edition") which includes only those modules your application uses by
customizing one of the files in:
[dojo]/buildscripts/profiles/
These files are named *.profile.js and each one contains a list of modules to
include in a build. If we created a new profile called "test.profile.js", we
could then make a profile build using it by doing:
%> cd buildscripts
%> ant -Dprofile=test -Ddocless=true release intern-strings
If the build is successful, your newly minted and compressed profile build will
be placed in [dojo]/releae/dojo/
-------------------------------------------------------------------------------
Copyright (c) 2004-2005, The Dojo Foundation, All Rights Reserved
vim:ts=4:et:tw=80:shiftwidth=4:
没有合适的资源?快使用搜索试试~ 我知道了~
jlibrary
共1431个文件
gif:465个
js:425个
ftl:154个
需积分: 27 10 下载量 51 浏览量
2007-12-17
12:08:30
上传
评论
收藏 5.83MB RAR 举报
温馨提示
这是用webwork,spring,hibernate框架做的开源项目实例,学习之用
资源推荐
资源详情
资源评论
收起资源包目录
jlibrary (1431个子文件)
Storage.as 1KB
calendar-win2k-cold-2.css 6KB
calendar-win2k-2.css 6KB
calendar-win2k-1.css 6KB
calendar-win2k-cold-1.css 6KB
calendar-system.css 6KB
theme.css 5KB
backStyle.css 5KB
calendar-tas.css 5KB
calendar-blue2.css 5KB
calendar-blue.css 5KB
calendar-green.css 5KB
calendar-brown.css 5KB
fck_contextmenu.css 4KB
fck_contextmenu.css 4KB
fck_contextmenu.css 4KB
style.css 3KB
fck_editor.css 2KB
fck_editor.css 2KB
fck_editor.css 2KB
HtmlMenu2.css 2KB
fck_dialog.css 2KB
fck_dialog.css 2KB
niftylayout.css 2KB
fck_dialog.css 2KB
HtmlSimpleDropdownButtons.css 2KB
fck_internal.css 2KB
browser.css 1KB
HtmlButtonTemplate.css 1KB
fck_dialog_common.css 1KB
tabs.css 1KB
HtmlTabs.css 1KB
fck_editorarea.css 1KB
Wizard.css 1KB
HtmlFloatingPane.css 1KB
HtmlTabSet.css 1KB
niftyCorners.css 1KB
fck_showtableborders_gecko.css 1KB
HtmlButton2Template.css 1KB
HtmlDatePicker.css 1KB
fck_universalkey.css 992B
Menu.css 944B
spellerStyle.css 841B
HtmlToolbar.css 800B
HtmlComboBox.css 795B
PopUpButton.css 741B
HtmlSplitPane.css 709B
HtmlTimePicker.css 611B
Tree.css 397B
AccordionPanel.css 388B
HtmlFisheyeList.css 348B
HtmlInlineEditBox.css 342B
HtmlResizableTextarea.css 295B
HtmlResizeHandle.css 286B
styles.css 282B
styles.css 266B
HtmlLayoutPane.css 202B
HtmlTaskBar.css 200B
HtmlTooltipTemplate.css 178B
HtmlSlideShow.css 121B
niftyPrint.css 29B
hibernate-mapping-3.0.dtd 40KB
spring-beans.dtd 21KB
hibernate-configuration-3.0.dtd 2KB
wangwang.exe 4.02MB
template.ftl 19KB
richtexteditor.ftl 11KB
optiontransferselect.ftl 11KB
newsAdminForm.ftl 7KB
newscategoryAdminForm.ftl 6KB
customerAdminList.ftl 5KB
form-close-validate.ftl 5KB
adminList.ftl 5KB
newscategoryAdminList.ftl 4KB
statisticsAdminList.ftl 4KB
advertiseAdminList.ftl 4KB
tooltip.ftl 4KB
functionAdminList.ftl 4KB
newsAdminList.ftl 4KB
doubleselect.ftl 4KB
roleAdminList.ftl 4KB
errorlogAdminList.ftl 4KB
customerAdminForm.ftl 4KB
adplaceAdminList.ftl 3KB
advertiseAdminForm.ftl 3KB
checkbox.ftl 3KB
adminLoginForm.ftl 3KB
form-close.ftl 3KB
pagesAdminList.ftl 3KB
onlinetimeAdminList.ftl 3KB
backTemplate.ftl 3KB
ipaddressAdminList.ftl 3KB
adminForm.ftl 3KB
backHeader.ftl 2KB
form-close.ftl 2KB
roleAdminForm.ftl 2KB
adplaceAdminForm.ftl 2KB
debug.ftl 2KB
functionAdminForm.ftl 2KB
table.ftl 2KB
共 1431 条
- 1
- 2
- 3
- 4
- 5
- 6
- 15
资源评论
梧桐之凤凰于飞
- 粉丝: 0
- 资源: 1
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功