📄 example 2 the postman always clicks twice the dojo toolkit.mht
字号:
From: <由 Windows Internet Explorer 7 保存>
Subject: Example 2: The Postman Always Clicks Twice | The Dojo Toolkit
Date: Sun, 2 Dec 2007 16:24:59 +0800
MIME-Version: 1.0
Content-Type: multipart/related;
type="text/html";
boundary="----=_NextPart_000_00A5_01C834FF.E2076760"
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198
This is a multi-part message in MIME format.
------=_NextPart_000_00A5_01C834FF.E2076760
Content-Type: text/html;
charset="utf-8"
Content-Transfer-Encoding: quoted-printable
Content-Location: http://dojotoolkit.org/node/3151
=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>Example 2: The =
Postman Always Clicks Twice | The Dojo Toolkit</TITLE><!--=0A=
section: default -->
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dutf-8"><LINK=20
href=3D"/book/book-dojo/part-1-life-dojo-dojo-and-dijit-application-examp=
les/example-1-why-doesnt-anyone-fi-0"=20
rel=3Dprev><LINK href=3D"/book/dojo-book-0-9/part-1-life-dojo-0" =
rel=3Dup><LINK=20
href=3D"/book/dojo-book-0-9/part-1-life-dojo/example-2-postman-always-cli=
cks-twice/basic-layout"=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=3Df158135290ce67440fdce6e3501bd9a1=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/node/3151#fullmenu">Full Menu</A> =
</LI></UL></DIV><!-- region_banner.php -->
<DIV class=3Dbanner-default id=3Dbanner-block>
<DIV id=3Dsection-heading>
<P>The Dojo Toolkit: Great experiences...for =
everyone.</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-1-life-dojo-0">Par=
t 1: Life=20
With Dojo</A> =C2=BB Example 2: The Postman Always Clicks =
Twice</DIV></DIV>
<DIV id=3Dcontent-block>
<DIV class=3Dcols-wide>
<DIV class=3D"col-a content-region-container" =
id=3Dsidebar-left-container></DIV>
<DIV class=3D"col-b content-region-container">
<DIV id=3Dmain-container><!-- main_content region -->
<H2>Example 2: The Postman Always Clicks Twice</H2><!--Node: -->
<DIV class=3Dnode>
<DIV class=3Dsubmitted>Submitted by criecke on Sun, 09/02/2007 - =
23:57.</DIV>
<DIV class=3Dcontent>
<P>Andy Tso gets a call from Regina Opulence, the head of the new =
Internet=20
Startup clickdammit.com. "I need to have a mail web site," she said, =
"one like=20
Google Mail. Can you make one up in a week?"</P>
<P>"Hmmmm." said Andy, "What's your business plan, if I may ask?"</P>
<P>"It's brilliant." she said. "Our backend servers will read the mail =
they send=20
back and forth, then send them ads based on the things they talk =
about!"</P>
<P>Andy rolled his eyes to the ceiling. It would do no good to talk =
about=20
privacy issues, legality, or all that other nonsense. He was just a tech =
guy,=20
and Regina wanted him to do techie-type things. At least Clickdammit.com =
paid=20
well. "Lemme give it a whirl. I think I can get you a pretty good demo =
in a=20
week. "</P>
<P>He hung up the phone and wondered ... how could he get this demo done =
<I>and</I> propose to his longtime girlfriend on Friday night? He still =
had to=20
write the speech, after all.</P>
<P>Fortunately there's Dojo! <SUPERSCRIPT>*</SUPERSCRIPT></P><BR><BR>
<P style=3D"FONT-SIZE: x-small"><SUPERSCRIPT>*</SUPERSCRIPT> Also =
fortunately,=20
Dojo has a demo email client that comes in every package! Written by =
Bill Keese=20
with contributions from Alex Russell and Peter Higgins, this demo covers =
a lot=20
of Dojo goodness.</P>
<DIV class=3Dbook-navigation>
<UL class=3Dmenu>
<LI class=3Dleaf><A=20
=
href=3D"http://dojotoolkit.org/book/dojo-book-0-9/part-1-life-dojo/exampl=
e-2-postman-always-clicks-twice/basic-layout">Basic=20
Layout</A>
<LI class=3Dleaf><A href=3D"http://dojotoolkit.org/node/3157">The =
Address Book</A>
<LI class=3Dleaf><A href=3D"http://dojotoolkit.org/node/3159">User =
Interaction</A>
<LI class=3Dleaf><A href=3D"http://dojotoolkit.org/node/3161">A =
Compose Mail=20
Widget</A>
<LI class=3Dleaf><A href=3D"http://dojotoolkit.org/node/4158">Mail =
Progress=20
Bar</A>
<LI class=3Dleaf><A href=3D"http://dojotoolkit.org/node/4160">Mail =
Folders and=20
dojo.Data</A>
<LI class=3Dleaf><A=20
=
href=3D"http://dojotoolkit.org/book/book-dojo/part-1-life-dojo-dojo-and-d=
ijit-application-examples/example-2-postman-always-click-0">The=20
Message List - dojox.Grid</A></LI></UL>
<DIV class=3D"page-links clear-block"><A class=3Dpage-previous=20
title=3D"Go to previous page"=20
href=3D"http://dojotoolkit.org/book/book-dojo/part-1-life-dojo-dojo-and-d=
ijit-application-examples/example-1-why-doesnt-anyone-fi-0">=E2=80=B9=20
Internationalization (i18n)</A><A class=3Dpage-up title=3D"Go to parent =
page"=20
href=3D"http://dojotoolkit.org/book/dojo-book-0-9/part-1-life-dojo-0">up<=
/A><A=20
class=3Dpage-next title=3D"Go to next page"=20
href=3D"http://dojotoolkit.org/book/dojo-book-0-9/part-1-life-dojo/exampl=
e-2-postman-always-clicks-twice/basic-layout">Basic=20
Layout =E2=80=BA</A></DIV></DIV></DIV>
<DIV class=3Dlinks>
<UL class=3D"links inline">
<LI class=3D"first book_printer"><A class=3Dbook_printer=20
title=3D"Show a printer-friendly version of this book page and its =
sub-pages."=20
href=3D"http://dojotoolkit.org/book/export/html/3151">Printer-friendly =
version</A>=20
<LI class=3Dcomment_forbidden><SPAN class=3Dcomment_forbidden><A=20
=
href=3D"http://dojotoolkit.org/user/login?destination=3Dnode/3151%2523com=
ment-form">Login</A>=20
or <A=20
=
href=3D"http://dojotoolkit.org/user/register?destination=3Dnode/3151%2523=
comment-form">register</A>=20
to post comments</SPAN>=20
<LI class=3D"last subscriptions_add_node"><A =
class=3Dsubscriptions_add_node=20
title=3D"Receive an e-mail whenever a comment is posted to this Book =
page."=20
href=3D"http://dojotoolkit.org/subscriptions/add/node/3151">Subscribe =
post</A>=20
</LI></UL></DIV></DIV>
<DIV id=3Dcomments></DIV><!-- /main_content region --></DIV></DIV>
<DIV class=3D"col-c content-region-container">
<DIV id=3Dsidebar-right-container></DIV></DIV><BR class=3Dclear></DIV>
<DIV class=3Dcols-a50b50 id=3Dafter-content-block>
<DIV class=3D"col-a content-region-container" =
id=3Dafter-content-block-1></DIV>
<DIV class=3D"col-b content-region-container" =
id=3Dafter-content-block-2><BR=20
class=3Dclear></DIV><BR class=3Dclear></DIV><BR clear=3Dall></DIV>
<DIV class=3Dcontent-region-container>
<DIV id=3Dnavigation-block>
<DIV id=3Dbreadcrumb-block>
<DIV id=3Dbreadcrumbs>
<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-1-life-dojo-0">Par=
t 1: Life=20
With Dojo</A> =C2=BB Example 2: The Postman Always Clicks =
Twice</DIV></DIV></DIV>
<DIV class=3Dcols-abcd id=3Dmain-menu-block><!-- Block: menu -->
<DIV class=3D"block block-menu" id=3Dblock-menu-573>
<DIV class=3Dcontent>
<UL class=3Dmenu>
<LI class=3Dleaf id=3Dmenu-item-574><A title=3D"See the Dojo Toolkit =
in action!"=20
href=3D"http://dojotoolkit.org/demos">Demos</A>=20
<LI class=3Dexpanded id=3Dmenu-item-575><A=20
title=3D"Get started with the Dojo Toolkit, fast"=20
href=3D"http://dojotoolkit.org/docs/quickstart">Quick Start</A>=20
<UL class=3Dmenu>
<LI class=3Dleaf id=3Dmenu-item-576><A title=3D"Get the toolkit"=20
href=3D"http://dojotoolkit.org/downloads">Downloads</A>=20
<LI class=3Dleaf id=3Dmenu-item-577><A title=3D"See examples of the =
Dojo Toolkit"=20
href=3D"http://dojotoolkit.org/demos">Examples</A>=20
<LI class=3Dleaf id=3Dmenu-item-639><A=20
href=3D"http://dojotoolkit.org/spotlight">Spotlight</A> </LI></UL>
<LI class=3Dexpanded id=3Dmenu-item-578><A=20
href=3D"http://dojotoolkit.org/about">About</A>=20
<UL class=3Dmenu>
<LI class=3Dleaf id=3Dmenu-item-579><A=20
href=3D"http://dojotoolkit.org/about">Overview</A>=20
<LI class=3Dleaf id=3Dmenu-item-580><A=20
href=3D"http://dojotoolkit.org/about/features">Features</A>=20
<LI class=3Dleaf id=3Dmenu-item-581><A=20
href=3D"http://dojotoolkit.org/about/press">Press</A>=20
<LI class=3Dleaf id=3Dmenu-item-582><A=20
href=3D"http://dojotoolkit.org/about/contact">Contact</A>=20
</LI></UL></LI></UL></DIV></DIV><!-- Block: menu -->
<DIV class=3D"block block-menu" id=3Dblock-menu-589>
<DIV class=3Dcontent>
<UL class=3Dmenu>
<LI class=3Dexpanded id=3Dmenu-item-583><A=20
href=3D"http://dojotoolkit.org/downloads">Downloads</A>=20
<UL class=3Dmenu>
<LI class=3Dleaf id=3Dmenu-item-584><A=20
href=3D"http://dojotoolkit.org/downloads">Current releases</A>=20
<LI class=3Dleaf id=3Dmenu-item-585><A=20
href=3D"http://archive.dojotoolkit.org/nightly/">Nightly builds</A>=20
<LI class=3Dleaf id=3Dmenu-item-586><A=20
href=3D"http://archive.dojotoolkit.org/">Archives</A>=20
<LI class=3Dleaf id=3Dmenu-item-587><A=20
href=3D"http://trac.dojotoolkit.org/roadmap?show=3Dall">Change =
logs</A>=20
<LI class=3Dleaf id=3Dmenu-item-588><A=20
href=3D"http://dojotoolkit.org/downloads/releasenotes">Release =
notes</A>=20
</LI></UL>
<LI class=3Dexpanded id=3Dmenu-item-590><A=20
href=3D"http://dojotoolkit.org/news">News</A>=20
<UL class=3Dmenu>
<LI class=3Dleaf id=3Dmenu-item-591><A=20
href=3D"http://dojotoolkit.org/blog">Blogs</A>=20
<LI class=3Dleaf id=3Dmenu-item-592><A=20
=
href=3D"http://dojotoolkit.org/topics/news/announcements">Announcements</=
A>=20
<LI class=3Dleaf id=3Dmenu-item-593><A=20
href=3D"http://dojotoolkit.org/aggregator">Planet Dojo</A>=20
</LI></UL></LI></UL></DIV></DIV><!-- Block: menu -->
<DIV class=3D"block block-menu" id=3Dblock-menu-594>
<DIV class=3Dcontent>
<UL class=3Dmenu>
<LI class=3Dexpanded id=3Dmenu-item-595><A=20
href=3D"http://dojotoolkit.org/docs">Documentation</A>=20
<UL class=3Dmenu>
<LI class=3Dleaf id=3Dmenu-item-596><A=20
href=3D"http://dojotoolkit.org/docs/quickstart">Quick Start</A>=20
<LI class=3Dleaf id=3Dmenu-item-597><A=20
href=3D"http://dojotoolkit.org/book/dojo-book-0-9-0">The Book of =
Dojo</A>=20
<LI class=3Dleaf id=3Dmenu-item-598><A=20
href=3D"http://dojotoolkit.org/docs/portingguides">Porting =
Guides</A>=20
<LI class=3Dleaf id=3Dmenu-item-599><A =
href=3D"http://dojotoolkit.org/api">API=20
Reference</A>=20
<LI class=3Dleaf id=3Dmenu-item-632><A=20
href=3D"http://dojotoolkit.org/developer">Developer notes</A> =
</LI></UL>
<LI class=3Dexpanded id=3Dmenu-item-601><A=20
href=3D"http://dojotoolkit.org/support">Support</A>=20
<UL class=3Dmenu>
<LI class=3Dleaf id=3Dmenu-item-602><A=20
href=3D"http://dojotoolkit.org/support">General Information</A>=20
<LI class=3Dleaf id=3Dmenu-item-600><A=20
href=3D"http://dojotoolkit.org/support/faq">FAQ</A>=20
<LI class=3Dleaf id=3Dmenu-item-603><A=20
href=3D"http://dojotoolkit.org/forum">Forums</A> =
</LI></UL></LI></UL></DIV></DIV><!-- Block: menu -->
<DIV class=3D"block block-menu" id=3Dblock-menu-604>
<DIV class=3Dcontent>
<UL class=3Dmenu>
<LI class=3Dexpanded id=3Dmenu-item-605><A=20
href=3D"http://dojotoolkit.org/community">Community</A>=20
<UL class=3Dmenu>
<LI class=3Dleaf id=3Dmenu-item-606><A=20
href=3D"http://dojotoolkit.org/community">General Information</A>=20
<LI class=3Dleaf id=3Dmenu-item-607><A=20
=
href=3D"http://dojotoolkit.org/book/dojo-book-0-9/part-4-meta-dojo/using-=
subversion">Subversion</A>=20
<LI class=3Dleaf id=3Dmenu-item-608><A =
href=3D"http://trac.dojotoolkit.org/">Bug=20
Tracking</A>=20
<LI class=3Dleaf id=3Dmenu-item-609><A=20
href=3D"http://dojotoolkit.org/community/roadmap">Roadmap</A>=20
<LI class=3Dleaf id=3Dmenu-item-610><A=20
=
href=3D"http://dojotoolkit.org/community/architecture">Architecture</A>=20
</LI></UL>
<LI class=3Dexpanded id=3Dmenu-item-611><A=20
href=3D"http://dojotoolkit.org/donate">Donate</A>=20
<UL class=3Dmenu>
<LI class=3Dleaf id=3Dmenu-item-612><A=20
href=3D"http://dojotoolkit.org/donate">PayPal donations</A> =
</LI></UL>
<LI class=3Dleaf id=3Dmenu-item-620><A=20
href=3D"http://dojotoolkit.org/foundation">Foundation</A> =
</LI></UL></DIV></DIV>
<DIV class=3Dclear></DIV></DIV>
<DIV id=3Dmenu-footer-block>
<DIV id=3Dmenu-footer-left></DIV>
<DIV id=3Dmenu-footer-right></DIV></DIV>
<DIV>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -