Ajax,即異步JavaScript與XML,目前是網絡開發人員中最熱門的編程技術之一。Ajax綜合了大量技術,通過在瀏覽器中使用JavaScript來處理網絡服務的響應,為創建基于XML或者JSON網絡服務的交互式網絡應用程序提供了堅實的基礎。
Michael Mahemoff,獲得墨爾本大學計算機科學和軟件工程系的博士學位。他的博士畢業論文是"Design Reuse in Software Engineering and Human-Computer Interaction"。他現在住在倫敦并為銀行、醫療保健和物流行業中軟件開發提供咨詢。
PREFACE
Part One INTRODUCTION
1 INTRODUCING AJAX
Ajax and the Usable Web
The Rise of Ajax
Ajaxifying the Web: The Story of Portals
Webifying the Desktop: The Story of Office Applications
Characteristics of Ajax Applications
The Ajax Technologies
Anatomy of a Server Call
Ajax Trends
Conclusions
2 A PATTERN-LED TUTORIAL
Ajax Technologies in a Blink
Ajaxifying a Web App: One Pattern at a Time
Projects and Katas
Conclusions
3 AJAX DESIGN: PRINCIPLES AND PATTERNS
Desirable Attributes of Ajax Applications
Oesigning for Ajax
Ajax Patterns Oueruiew
Anatomy of a Pattern
Ajax Patterns Demos
Cnnclusions
Part Two FOUNDATIONAL TECHNOLOGY PATTERNS
4 AJAX APP
Ajax App
5 DISPLAY MANIPULATION
Display Morphing
Page Rearrangement
6 WEB REMOTING
Web Service
XMLHttpRequest Call
IFrame Call
HTTP Streaming
On-Demand JavaScript
7 DYNAMIC BEHAVIOR
User A ction
Scheduling
8 EXTENDED TECHNOLOGIES
Richer Plugin
Part Three PROGRAMMING PATTERNS
9 WEB SERVICES
RESTful Service
RPC Service
Ajax Stub
HTML Message
Plain-Text Message
XML Message
JSON Message
10 BROWSER-SERVER DIALOGUE
Call Tracking
Periodic Refresh
Submission Throttling
Explicit Submission
Distributed Events
Cross-Domain Proxy
11 DOM POPULATION
XML Data Island
Browser-Side XSLT
Browser-Side Templating
12 CODE GENERATION AND REUSE
Server-Side Code Generation
Cross-Browser Component
13 PERFORMANCE OPTIMIZATION
Browser-Side Cache
Predictive Fetch
Guesstimate
Multi-Stage Download
Fat Client
Part Four FUNCTIONALITY AND USABILITY PATTERNS
14 WIDGETS
Slider
Progress Indicator
Drilldown
Data Grid
Rich Text Editor
Suggestion
Live Search
Live Command-Line
Live Form
15 PAGE ARCHITECTURE
Drab-And-Drop
Sprite
Popup
Malleable Content
Microlink
Portlet
Status Area
Update Control
Virtual Workspace
16 VISUAL EFFECTS
One-Second Spotlight
One-Second Mutation
One-Second Motion
Highlight
17 FUNCTIONALITY
Lazy Registration
Direct Login
Host-Proof Hosting
Timeout
Heartbeat
Unique URLs
Part Five DEVELOPMENT PATTERNS
18 DIAGNOSIS
Logging
Debugging
DOM Inspection
Traffic Sniffing
19 TESTING
Simulation Service
Browser-Side Test
Seruice Test
System Test
Part Six APPENDIXES
A AJAX FRAMEWORKS AND LIBRARIES
B SETTING UP THE CODE EXAMPLES
C PATTERNS AND PATTERN LANGUAGES
D REFERENCES
INDEX