買這商品的人也買了...
-
$650$514 -
$650$507 -
$1,620$1,539 -
$450$356 -
$980$774 -
$650$507 -
$520$411 -
$780$616 -
$650$507 -
$1,880$1,786 -
$700AJAX: Creating Web Pages with Asynchronous JavaScript and XML
-
$1,200$948 -
$1,300$1,235 -
$590$466 -
$1,710$1,625 -
$880$695 -
$550$435 -
$750$593 -
$290$226 -
$600$480 -
$880$695 -
$620$527 -
$690$587 -
$520$411 -
$750$638
商品描述
Reusable components and patterns for Ajax-driven applications
Ajax is one of the latest and greatest ways to improve users’ online experience and create new and innovative web functionality. By allowing specific parts of a web page to be displayed without refreshing the entire page, Ajax significantly enhances the experience of web applications. It also lets web developers create intuitive and innovative interaction processes.
Ajax for Web Application Developers provides the in-depth working knowledge of Ajax that web developers need to take their web applications to the next level. The book shows how to create an Ajax-driven web application from an object-oriented perspective, and it includes discussion of several useful Ajax design patterns.
This detailed guide covers the creation of connections to a MySQL database with PHP 5 via a custom Ajax engine and shows how to gracefully format the response with CSS, JavaScript, and XHTML while keeping the data tightly secure. It also covers the use of four custom Ajax-enabled components in an application and how to create each of them from scratch.
The final section of the book combines the individual code examples and techniques from earlier chapters of the book into one larger, Ajax-driven application–an internal web mail application that can be used in any user-based application, such as a community-based web application. Readers will learn not only how to create and use their own reusable Ajax components in this application
but also how to connect their components to any future Ajax applications that they might build.
Table of Contents
Introduction
An Introduction to the Book Samples
I: Getting Started
1 Introduction to Ajax
The XML DOM
Measuring the Benefits
2 The Request
An In-Depth Look at XMLHttpRequest
A Standard XHR
A Database-Enabled XHR
Sending Data to a Database-Enabled XHR
Creating the Object
Asynchronous Data Transfers
The Ready State
HTTP Status Codes and Headers
3 The Response
XML
Elements
Attributes
CDATA
Parsing XML
JSON
The Syntax
Using JSON
Parsing JSON
4 Rendering the Response with XHTML and CSS
XHTML
CSS
II: Creating and Using the JavaScript Engine
5 Object-Oriented JavaScript
Object-Oriented Approaches
Using the new Operator
Literal Notation
Associative Arrays
JScript.NET
Object Constructors
Instances
Properties
Methods
Prototypes
Instances
Creating Properties
Overriding and Overwriting Properties
Property Protection
Methods
Extending Objects with Prototyped Methods
6 Creating the Engine
Creating a Custom Ajax Wrapper
Making Requests
The Ready State
The Response
Creating an Ajax Updater
Constructing the Object
Updating the Request Object
The Response
7 Using the Engine
Getting Started
Making a Request
Engine Methods and Properties
8 Debugging
The JavaScript onerror Event
responseText
IE Developer Toolbar
Installing the Plug-in
Disabling the Cache
Navigating the DOM
Viewing Class and ID Information
Safari Enhancer
Installing Safari Enhancer
The JavaScript Console
FireBug
Installing FireBug
The Command Line
Logging Messages in the Console
Levels of Logging
Inspecting Elements
Spying on Ajax
9 Extending the Engine
Creating a Utilities Object
Handling Status Codes with an HTTP Object
HTTP Status Code Categories
Using the HTTP Object
III: Creating Reusable Components
10 Accordion
Getting Started
The XML Architecture
Requesting the XML
Creating the Accordion Object
Panel Functionality and Data Display
Creating the CSS
11 Tree View
Structuring the Data
Handling the Response
Rendering the GUI
Adding Style to the Component
12 Client-Side Validation
Getting Started
Creating a Validation Object
Validating User Input
Providing Visual Feedback
The Server Side
The Constructor
Verifying User Information
Registering and Logging In a User
13 Data Grid
Getting Started
Creating a DataGrid Object
Displaying the Data
Creating a DataRow Object
Creating a DataColumn Object
Adding Design to the Component
IV: AJAX Patterns
14 Singleton Pattern
An Overview of the Singleton Pattern
Creating an Object Using the Singleton Pattern
Using the Singleton Object
15 Model View Controller
An Overview of the Pattern
Creating the Pattern
Using the Pattern
16 The Observer Pattern
Pattern Overview
Register Observers Overview
Notify Observers Overview
Unregister Observers Overview
Creating an Error-Handling Object
Register Observers
Notify Observers
Unregister Observers
Using the Error-Handling Object
17 Data Reflection Pattern
An Overview
The Multi-User Pattern
Creating the Pattern
18 Interaction Patterns
Creating a History with Cookies
The Historian Object
Creating and Displaying the XML
The Navigation Object
Drag and Drop
The DragDrop Object
19 Usability Patterns
Handling Feedback, Errors, and Warnings
Designing with Code
V: Server-Side Interaction
20 Understanding Ajax Database Interaction
Connecting with PHP
Bridging the Gap
Making the Requests
Making the Connection
21 Interacting with a Database: The Server-Side
Connecting to ASP.NET
Connecting to ColdFusion
22 Advanced Ajax Database Interaction
Bulk Updates
Sending Arrays
Sending XML
Sending JSON
Server-Side XML and JSON
XML
JSON
VI: Finishing Touches
23 Securing Your Application
Security Holes
Password-Protecting Ajax Requests
Creating Unique Passwords
Verifying Passwords on the Server-Side
24 Best Practices
Using the Engine
Design Patterns
Using Components
Static Versus Dynamic Responses
Error and Feedback Handling
Application History
Security
商品描述(中文翻譯)
可重用的元件與模式,用於 Ajax 驅動的應用程式
Ajax 是改善使用者在線體驗和創造新穎網頁功能的最新且最有效的方法之一。透過允許網頁的特定部分在不重新整理整個頁面的情況下顯示,Ajax 顯著提升了網頁應用程式的使用體驗。它還使網頁開發者能夠創建直觀且創新的互動過程。
《Ajax for Web Application Developers》提供了網頁開發者所需的深入 Ajax 工作知識,以將其網頁應用程式提升到更高的水平。本書展示了如何從物件導向的角度創建一個 Ajax 驅動的網頁應用程式,並討論了幾個有用的 Ajax 設計模式。
這本詳細的指南涵蓋了如何通過自定義的 Ajax 引擎使用 PHP 5 連接到 MySQL 數據庫,並展示了如何使用 CSS、JavaScript 和 XHTML 優雅地格式化響應,同時保持數據的高度安全性。它還涵蓋了在應用程式中使用四個自定義的 Ajax 啟用元件,以及如何從零開始創建每一個元件。
本書的最後一部分將前面章節中的個別代碼範例和技術結合成一個更大的 Ajax 驅動應用程式——一個內部網頁郵件應用程式,可以用於任何基於用戶的應用程式,例如社區型網頁應用程式。讀者將學習如何在此應用程式中創建和使用自己的可重用 Ajax 元件,以及如何將其元件連接到未來可能構建的任何 Ajax 應用程式。
目錄
引言
本書範例介紹
I: 開始使用
1 介紹 Ajax
XML DOM
測量效益
2 請求
深入了解 XMLHttpRequest
標準 XHR
數據庫啟用的 XHR
向數據庫啟用的 XHR 發送數據
創建物件
非同步數據傳輸
就緒狀態
HTTP 狀態碼和標頭
3 響應
XML
元素
屬性
CDATA
解析 XML
JSON
語法
使用 JSON
解析 JSON
4 使用 XHTML 和 CSS 渲染響應
XHTML
CSS
II: 創建和使用 JavaScript 引擎
5 物件導向 JavaScript
物件導向方法
使用 new 運算子
字面量表示法
關聯陣列
JScript.NET
物件建構函數
實例
屬性
方法
原型
實例
創建屬性
覆蓋和重寫屬性
屬性保護
方法
使用原型方法擴展物件
6 創建引擎
創建自定義 Ajax 包裝器
發送請求
就緒狀態
響應
創建 Ajax 更新器
構建物件
更新請求物件
響應
7 使用引擎
開始使用
發送請求
引擎方法和屬性
8 除錯
JavaScript onerror 事件
responseText
IE 開發者工具列
安裝插件
禁用快取
瀏覽 DOM