dojox offline the dojo toolkit.mht
来自「dojo学习资料,从初级开始学起,是初学都认识dojo的好帮手.」· MHT 代码 · 共 1,898 行 · 第 1/5 页
MHT
1,898 行
From: <由 Windows Internet Explorer 7 保存>
Subject: DojoX Offline | The Dojo Toolkit
Date: Sun, 2 Dec 2007 16:37:57 +0800
MIME-Version: 1.0
Content-Type: multipart/related;
type="text/html";
boundary="----=_NextPart_000_038D_01C83501.B19B17F0"
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198
This is a multi-part message in MIME format.
------=_NextPart_000_038D_01C83501.B19B17F0
Content-Type: text/html;
charset="utf-8"
Content-Transfer-Encoding: quoted-printable
Content-Location: http://dojotoolkit.org/book/dojo-book-0-9/part-5-dojox/dojo-offline
=EF=BB=BF<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" =
"http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<HTML lang=3Den xml:lang=3D"en" =
xmlns=3D"http://www.w3.org/1999/xhtml"><HEAD><TITLE>DojoX Offline | The =
Dojo Toolkit</TITLE><!--=0A=
section: docs -->
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dutf-8"><LINK=20
href=3D"/book/dojo-book-0-9/part-5-dojox/dojox-layout" rel=3Dprev><LINK=20
href=3D"/book/dojo-book-0-9/part-5-dojox-extensions-dojo-0" =
rel=3Dup><LINK=20
href=3D"/book/dojo-book-0-9/part-5-dojox/dojo-offline/using-dojo-offline"=
=20
rel=3Dnext><LINK href=3D"/sites/all/themes/dtk/favicon.ico" =
type=3Dimage/x-icon=20
rel=3D"shortcut icon">
<META content=3Den name=3Dlanguage>
<STYLE type=3Dtext/css media=3Dall>@import url( =
/files/css/4538c7b86f5ddf0e20fe837f59d90fef.css );
</STYLE>
<SCRIPT src=3D"http://dojotoolkit.org/dojo/config/6"=20
type=3Dtext/javascript></SCRIPT>
<SCRIPT=20
src=3D"http://dojotoolkit.org/sites/all/modules/dojo/dtk_build/dojo/dojo.=
js"=20
type=3Dtext/javascript></SCRIPT>
<SCRIPT =
type=3Dtext/javascript>dojo.addOnLoad(function(){dojo.addClass(dojo.body(=
),"tundra");});</SCRIPT>
<SCRIPT type=3Dtext/javascript>dojo.require("dojo.parser");</SCRIPT>
<SCRIPT =
type=3Dtext/javascript>document.documentElement.className=3D"js";</SCRIPT=
>
<SCRIPT src=3D"http://dojotoolkit.org/sites/all/themes/dtk/js/common.js" =
type=3Dtext/javascript></SCRIPT>
<SCRIPT type=3Dtext/javascript>
dojo.require("dijit._base.sniff");
</SCRIPT>
<META content=3D"MSHTML 6.00.6000.16544" name=3DGENERATOR></HEAD>
<BODY class=3D"" id=3Dbdy>
<DIV id=3Dpage-block><!-- region_user_header.php -->
<DIV id=3Dlogin-block><SPAN id=3Duser-header> </SPAN> <SPAN =
id=3Dlogin-prompt><A=20
href=3D"http://dojotoolkit.org/user">Login</A></SPAN> <SPAN =
id=3Dregister-prompt><A=20
href=3D"http://dojotoolkit.org/user/register">Register</A></SPAN> =
</DIV><!-- /region_user_header.php -->
<DIV id=3Dbody-block><!-- region_header.php -->
<DIV id=3Dlogo-block>
<DIV id=3Ddojo-logo><A title=3DHome =
href=3D"http://dojotoolkit.org/"><IMG=20
id=3Ddojo-logo-img alt=3D"The Dojo Toolkit"=20
src=3D"http://dojotoolkit.org/sites/all/themes/dtk/img/banner-logo-text.g=
if"></A>=20
</DIV>
<DIV id=3Dsearch-block>
<FORM id=3Dsearch-theme-form action=3D/search/node method=3Dpost>
<DIV>
<H6 class=3Dhidden><LABEL =
for=3Dsearch_theme_form_keys>Search</LABEL></H6>
<DIV class=3Dcontainer-inline id=3Dsearch>
<DIV class=3Dform-item><INPUT class=3Dform-text =
id=3Dedit-search-theme-form-keys=20
title=3D"Enter the terms you wish to search for." maxLength=3D128 =
size=3D25=20
name=3Dsearch_theme_form_keys><BUTTON class=3Dform-submit =
id=3Dedit-submit-1 name=3Dop=20
type=3Dsubmit><SPAN class=3Dhidden>Search</SPAN></BUTTON> <INPUT=20
id=3Dedit-search-theme-form type=3Dhidden value=3Dsearch_theme_form =
name=3Dform_id>=20
<INPUT id=3Da-unique-id type=3Dhidden =
value=3D3f69e328cbd47ff457e4b25037ebd4be=20
name=3Dform_token> </DIV></DIV></DIV></FORM></DIV></DIV><!-- =
/region_header.php -->
<DIV id=3Dglobal-menu-block>
<UL id=3Dglobal-menu>
<LI id=3Dnav-about><A class=3Dplink =
href=3D"http://dojotoolkit.org/about">About</A>=20
<LI id=3Dnav-demos><A class=3Dplink =
href=3D"http://dojotoolkit.org/demos">Demos</A>=20
<LI id=3Dnav-downloads><A class=3Dplink=20
href=3D"http://dojotoolkit.org/downloads">Downloads</A>=20
<LI id=3Dnav-documentation><A class=3Dplink=20
href=3D"http://dojotoolkit.org/docs">Documentation</A>=20
<LI id=3Dnav-support><A class=3Dplink=20
href=3D"http://dojotoolkit.org/support">Support</A>=20
<LI id=3Dnav-community><A class=3Dplink=20
href=3D"http://dojotoolkit.org/community">Community</A>=20
<LI id=3Dnav-fullmenu><A onclick=3D"return false;"=20
=
href=3D"http://dojotoolkit.org/book/dojo-book-0-9/part-5-dojox/dojo-offli=
ne#fullmenu">Full=20
Menu</A> </LI></UL></DIV><!-- region_banner.php -->
<DIV class=3Dbanner-docs id=3Dbanner-block>
<DIV id=3Dsection-heading>
<P>Documentation</P></DIV>
<DIV id=3Dsection-subheading>
<P>learn about the dojo toolkit</P></DIV></DIV><!-- /region_banner.php =
-->
<DIV id=3Dtop-breadcrumb-block>
<DIV class=3Dbreadcrumb><A href=3D"http://dojotoolkit.org/">Home</A> =
=C2=BB <A=20
href=3D"http://dojotoolkit.org/book/dojo-book-0-9-0">The Book of =
Dojo</A> =C2=BB <A=20
href=3D"http://dojotoolkit.org/book/dojo-book-0-9/part-5-dojox-extensions=
-dojo-0">Part=20
5: DojoX</A> =C2=BB DojoX Offline</DIV></DIV>
<DIV id=3Dcontent-block>
<DIV class=3Dcols-narrow-wide>
<DIV class=3D"col-a content-region-container" =
id=3Dsidebar-left-container>
<DIV class=3Dcontent-block><!-- Block: menu -->
<DIV class=3D"block block-menu" id=3Dblock-menu-572>
<H2 class=3Dtitle>The Book of Dojo</H2>
<DIV class=3Dcontent>
<UL class=3Dmenu>
<LI class=3Dexpanded id=3Dmenu-item-296><A=20
href=3D"http://dojotoolkit.org/book/dojo-book-0-9-0">The Book of =
Dojo</A>=20
<UL class=3Dmenu>
<LI class=3Dleaf id=3Dmenu-item-312><A=20
=
href=3D"http://dojotoolkit.org/book/dojo-book-0-9/part-1-life-dojo/quick-=
installation">Quick=20
Installation</A>=20
<LI class=3Dleaf id=3Dmenu-item-652><A=20
=
href=3D"http://dojotoolkit.org/book/dojo-book-0-9/hello-world-tutorial">H=
ello=20
World</A>=20
<LI class=3Dleaf id=3Dmenu-item-651><A=20
=
href=3D"http://dojotoolkit.org/book/book-dojo/part-4-meta-dojo-making-you=
r-dojo-code-run-faster-and-better/debugging-facilities/deb">Debugging=20
Tutorial</A>=20
<LI class=3Dcollapsed id=3Dmenu-item-297><A=20
=
href=3D"http://dojotoolkit.org/book/dojo-book-0-9/introduction">Introduct=
ion</A>=20
<LI class=3Dcollapsed id=3Dmenu-item-324><A=20
=
href=3D"http://dojotoolkit.org/book/dojo-book-0-9/part-1-life-dojo-0">Par=
t 1:=20
Life With Dojo</A>=20
<LI class=3Dcollapsed id=3Dmenu-item-298><A=20
=
href=3D"http://dojotoolkit.org/book/dojo-book-0-9/part-2-dijit-0">Part =
2:=20
Dijit</A>=20
<LI class=3Dcollapsed id=3Dmenu-item-299><A=20
=
href=3D"http://dojotoolkit.org/book/dojo-book-0-9/part-3-programmatic-dij=
it-and-dojo-0">Part=20
3: JavaScript With Dojo and Dijit</A>=20
<LI class=3Dcollapsed id=3Dmenu-item-300><A=20
=
href=3D"http://dojotoolkit.org/book/dojo-book-0-9/part-4-meta-dojo-0">Par=
t 4:=20
Testing, Tuning and Debugging</A>=20
<LI class=3Dexpanded id=3Dmenu-item-301><A=20
=
href=3D"http://dojotoolkit.org/book/dojo-book-0-9/part-5-dojox-extensions=
-dojo-0">Part=20
5: DojoX</A>=20
<UL class=3Dmenu>
<LI class=3Dleaf id=3Dmenu-item-519><A=20
=
href=3D"http://dojotoolkit.org/book/dojo-book-0-9/part-5-dojox/dojox-coll=
ections">Collections</A>=20
<LI class=3Dleaf id=3Dmenu-item-518><A=20
=
href=3D"http://dojotoolkit.org/book/dojo-book-0-9/part-5-dojox/cometd-cli=
ent">Cometd=20
(Client)</A>=20
<LI class=3Dleaf id=3Dmenu-item-520><A=20
=
href=3D"http://dojotoolkit.org/book/dojo-book-0-9/part-5-dojox/dojox-cryp=
tography">Cryptography</A>=20
<LI class=3Dleaf id=3Dmenu-item-521><A=20
=
href=3D"http://dojotoolkit.org/book/dojo-book-0-9/part-5-dojox/dojox-data=
">Data</A>=20
<LI class=3Dexpanded id=3Dmenu-item-504><A class=3Dactive=20
=
href=3D"http://dojotoolkit.org/book/dojo-book-0-9/part-5-dojox/dojo-offli=
ne">DojoX=20
Offline</A>=20
<UL class=3Dmenu>
<LI class=3Dleaf id=3Dmenu-item-534><A=20
=
href=3D"http://dojotoolkit.org/book/dojo-book-0-9/part-5-dojox/dojo-offli=
ne/using-dojo-offline">Using=20
Dojo Offline</A>=20
<LI class=3Dleaf id=3Dmenu-item-535><A=20
=
href=3D"http://dojotoolkit.org/book/dojo-book-0-9/part-5-dojox/dojo-offli=
ne/storing-offline-data">Storing=20
Offline Data</A>=20
<LI class=3Dleaf id=3Dmenu-item-536><A=20
=
href=3D"http://dojotoolkit.org/book/dojo-book-0-9/part-5-dojox/dojo-offli=
ne/syncing">Syncing</A>=20
<LI class=3Dleaf id=3Dmenu-item-537><A=20
=
href=3D"http://dojotoolkit.org/book/dojo-book-0-9/part-5-dojox/dojo-offli=
ne/further-resources">Further=20
Resources</A>=20
<LI class=3Dleaf id=3Dmenu-item-538><A=20
=
href=3D"http://dojotoolkit.org/book/dojo-book-0-9/part-5-dojox/dojo-offli=
ne/addendum">Addendum</A>=20
</LI></UL>
<LI class=3Dleaf id=3Dmenu-item-638><A=20
=
href=3D"http://dojotoolkit.org/book/dojo-book-0-9/part-5-dojox/dojox-dtl"=
>DTL</A>=20
<LI class=3Dleaf id=3Dmenu-item-522><A=20
=
href=3D"http://dojotoolkit.org/book/dojo-book-0-9/part-5-dojox/dojox-fx">=
FX</A>=20
<LI class=3Dcollapsed id=3Dmenu-item-523><A=20
=
href=3D"http://dojotoolkit.org/book/dojo-book-0-9/part-5-dojox/dojox-gfx"=
>GFX</A>=20
<LI class=3Dleaf id=3Dmenu-item-525><A=20
=
href=3D"http://dojotoolkit.org/book/dojo-book-0-9/part-5-dojox/dojox-i-o"=
>I/O</A>=20
<LI class=3Dleaf id=3Dmenu-item-524><A=20
=
href=3D"http://dojotoolkit.org/book/dojo-book-0-9/part-5-dojox/dojox-imag=
e">Image</A>=20
<LI class=3Dleaf id=3Dmenu-item-526><A=20
=
href=3D"http://dojotoolkit.org/book/dojo-book-0-9/part-5-dojox/dojox-layo=
ut">Layout</A>=20
<LI class=3Dleaf id=3Dmenu-item-527><A=20
=
href=3D"http://dojotoolkit.org/book/dojo-book-0-9/part-5-dojox/dojox-pres=
entation">Presentation</A>=20
<LI class=3Dleaf id=3Dmenu-item-517><A=20
=
href=3D"http://dojotoolkit.org/book/dojo-book-0-9/part-5-dojox/dojox-stri=
ng-utilities">String=20
Utilities</A>=20
<LI class=3Dleaf id=3Dmenu-item-528><A=20
=
href=3D"http://dojotoolkit.org/book/dojo-book-0-9/part-5-dojox/dojox-timi=
ng">Timing</A>=20
<LI class=3Dleaf id=3Dmenu-item-529><A=20
=
href=3D"http://dojotoolkit.org/book/dojo-book-0-9/part-5-dojox/dojox-uuid=
">UUID</A>=20
<LI class=3Dleaf id=3Dmenu-item-530><A=20
=
href=3D"http://dojotoolkit.org/book/dojo-book-0-9/part-5-dojox/dojox-vali=
date">Validate</A>=20
<LI class=3Dcollapsed id=3Dmenu-item-531><A=20
=
href=3D"http://dojotoolkit.org/book/dojo-book-0-9/part-5-dojox/dojox-widg=
ets">Widgets</A>=20
<LI class=3Dleaf id=3Dmenu-item-532><A=20
=
href=3D"http://dojotoolkit.org/book/dojo-book-0-9/part-5-dojox/dojox-wire=
">Wire</A>=20
<LI class=3Dleaf id=3Dmenu-item-533><A=20
=
href=3D"http://dojotoolkit.org/book/dojo-book-0-9/part-5-dojox/dojox-xml-=
utilities">XML=20
Utilities</A> </LI></UL></LI></UL>
<LI class=3Dcollapsed id=3Dmenu-item-54><A title=3D"The Dojo Book, =
0.4"=20
href=3D"http://dojotoolkit.org/book/dojo-book-0-4">The Dojo Book, =
0.4</A>=20
</LI></UL></DIV></DIV></DIV></DIV>
<DIV class=3D"col-b content-region-container">
<DIV id=3Dmain-container><!-- main_content region -->
<H2>DojoX Offline</H2><!--Node: -->
<DIV class=3Dnode>
<DIV class=3Dsubmitted>Submitted by BradNeuberg on Sat, 08/18/2007 - =
19:03.</DIV>
<DIV class=3Dcontent>
<P style=3D"FONT-SIZE: small"><B>Note:</B> This document is a copy of =
the <A=20
href=3D"http://docs.google.com/View?docid=3Ddhkhksk4_8gdp9gr">Dojo =
Offline=20
Tutorial</A> hosted on Google Docs as of August 18, 2007. Every effort =
is made=20
to keep this copy in sync with the original</P><A title=3D"Dojo Offline" =
href=3D"http://dojotoolkit.org/offline">Dojo Offline</A> is an =
open-source toolkit=20
that makes it easy to create sophisticated, offline web applications. It =
sits on=20
top of <A title=3D"Google Gears" =
href=3D"http://gears.google.com/">Google Gears</A>,=20
a plugin from Google that helps extend web browsers with new =
functionality. Dojo=20
Offline makes working with Google Gears easier; extends it with =
important=20
functionality; creates a higher-level API than Google Gears provides; =
and=20
exposes developer productivity features. In particular, Dojo Offline =
provides=20
the following functionality:<BR><BR>
<UL>
<LI><A title=3D"An offline widget"=20
=
href=3D"http://dojotoolkit.org/book/dojo-book-0-9/part-5-dojox/dojo-offli=
ne/using-dojo-offline#widget">An=20
offline widget</A> that you can easily embed in your web page with =
just a few=20
lines of code, automatically providing the user with network feedback, =
sync=20
messages, offline instructions, and more=20
<LI><A title=3D"A sync framework"=20
=
href=3D"http://dojotoolkit.org/book/dojo-book-0-9/part-5-dojox/dojo-offli=
ne/syncing">A=20
sync framework</A> to help you store actions done while offline and =
sync them=20
with a server once back on the network=20
<LI><A title=3D"Automatic network and application-availability =
detection"=20
=
href=3D"http://dojotoolkit.org/book/dojo-book-0-9/part-5-dojox/dojo-offli=
ne/using-dojo-offline#network_status">Automatic=20
network and application-availability detection</A> to determine when =
your=20
application is on- or off-line so that you can take appropriate action =
<LI><A title=3D"A slurp() method"=20
=
href=3D"http://dojotoolkit.org/book/dojo-book-0-9/part-5-dojox/dojo-offli=
ne/using-dojo-offline#slurp">A=20
slurp() method</A> that automatically scans the page and figures out =
all the=20
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?