背景|Background
The following Ajax patterns are being collected and discovered by Michael Mahemoff. What's here is CC-licensed, so please feel free to pull any content into your own work. The patterns will eventually be published as an O'Reilly text, "Ajax Design Patterns".
基础技术:模式(9项)
Foundational Technology Patterns (9)
These patterns are the building blocks of Ajax applications(模式是创建Ajax应用的基石). They are more "reference patterns"(参考模式) than true "design patterns"(设计模式), at least from the perspective of a modern Ajax developer, who will take these technologies as a given. The patterns are included to introduce the types of technologies that are used, provide a common vocabulary used throughout the language, and facilitate a discussion of pros and cons.
Ajax架构|Ajax Architecture
- Ajax App Create a rich application that can be deployed remotely into any modern web browser.
显示处理|Display Manipulation
- Display Morphing(显示形态的改变,改变 样式 或 值) Alter styles and values in the DOM to change display information such as replacing text and altering background colour.
- Page Rearrangement (页面调整)Restructure the DOM to change the page's structure - moving, adding, and removing elements.
Web远程控制/调用Web Remoting
- Web Service Expose server-side functionality with an HTTP API.
- XMLHttpRequest Call Use XMLHttpRequest objects for browser-server communication.
- IFrame Call Use IFrames for browser-server communication.
- HTTP Streaming Stream server data in the response of a long-lived HTTP connection.
动态行为|Dynamic Behaviour
- User Action (用户动作、操作)Use Javascript event handlers to respond to user actions.
- Scheduling (日程安排、任务调度)Use Javascript timers to schedule actions.
待续--2