CRUD(create, retrieve,update, delete)
Add - Once the user clicks on the Add button/link they are presented with a
form, clicking on Cancel takes them back to the listing with no action being
taken, clicking on Add (or Submit, Insert, etc.) inserts the item into the
system and returns the user to the listing.
Edit - Once the user clicks on the Edit button/link they are presented with a
form representing the particular item, again clicking on Cancel takes them
back to the listing with no action, clicking on Update updates the system with
the user's changes and returns them to the listing.
Delete - Once the user clicks on the Delete button/link they are presented
with a confirmation page identifying the item(s) they wish to delete, cancel
takes them back to the listing, confirming deletes the item(s) and returns the
user to the listing.
View - Once the user clicks on the item link (or you can have a separate
View link) they are presented with a read-only version of the selected item
and can either Cancel or Edit that item. Cancelling returns them to the
listing, Edit takes them to an Edit form and follows the normal flow from
there.
AJAX
AJAX全稱為“Asynchronous JavaScript and XML”(異步JavaScript和XML),是指一種建立互動式網頁應用的網頁開發技術。它有機地組合了以下幾種技術:
Ajax(Asynchronous JavaScript + XML)的定義
基于web标準(standards-based presentation)XHTML+CSS的表示;
使用 DOM(Document Object Model)進行動态顯示及互動;
使用 XML 和 XSLT 進行資料交換及相關操作;
使用 XMLHttpRequest 進行異步資料查詢、檢索;
使用 JavaScript 将所有的東西綁定在一起。英文參見Ajax的提出者Jesse James Garrett的原文a
類似于DHTML或LAMP,AJAX不是指一種單一的技術,而是有機地利用了一系列相關的技術。事實上,一些基于AJAX的“派生/合成”式(derivative/composite)的技術正在出現,如“AFLAX”。
AJAX的應用使用支援以上技術的web浏覽器作為運作平台。這些浏覽器目前包括:Mozilla、Firefox、Internet Explorer、Opera、Konqueror及Safari。但是Opera不支援XSL格式對象,也不支援XSLT。[1]
與傳統的web應用比較
傳統的web應用允許使用者填寫表單(form),當送出表單時就向web伺服器發送一個請求。伺服器接收并處理傳來的表單,然後傳回一個新的網頁。這個做法浪費了許多帶寬,因為在前後兩個頁面中的大部分HTML代碼往往是相同的。由于每次應用的互動都需要向伺服器發送請求,應用的響應時間就依賴于伺服器的響應時間。這導緻了使用者界面的響應比本地應用慢得多。
與此不同,AJAX應用可以僅向伺服器發送并取回必需的資料,它使用SOAP或其它一些基于XML的web service接口,并在用戶端采用JavaScript處理來自伺服器的響應。因為在伺服器和浏覽器之間交換的資料大量減少,結果我們就能看到響應更快的應用。同時很多的處理工作可以在送出請求的用戶端機器上完成,是以Web伺服器的處理時間也減少了。
傳統web應用與AJAX應用的比較:處理使用者互動

傳統web應用與AJAX應用的比較:互動模式

本文轉自浪子部落格園部落格,原文連結:http://www.cnblogs.com/walkingboy/archive/2005/08/09/210520.html,如需轉載請自行聯系原作者