Ajax: Your visual blueprint for creating rich Internet applications
暫譯: Ajax:創建豐富網路應用程式的視覺藍圖

Steve Holzner

  • 出版商: Hungry Minds
  • 出版日期: 2006-07-31
  • 售價: $1,300
  • 貴賓價: 9.5$1,235
  • 語言: 英文
  • 頁數: 338
  • 裝訂: Paperback
  • ISBN: 0470043067
  • ISBN-13: 9780470043066
  • 相關分類: Ajax
  • 海外代購書籍(需單獨結帳)

買這商品的人也買了...

商品描述

Description

Welcome to the only guidebook series that takes a visual approach to professional-level computer topics. Open the book and you'll discover step-by-step screen shots that demonstrate over 150 key Ajax techniques, including:

  • Downloading data from behind the scenes
  • Enabling real-time live searches
  • Playing games that use Ajax
  • Populating pop-up menus
  • Accessing Web pages from JavaScript
  • Handling menus, colors, and backgrounds
  • Creating interactive mouseovers
  • Updating shopping carts
  • Installing Ajax frameworks
  • Validating XML from the server
  • Enabling auto-completion of typed terms
  • Downloading images behind the scenes

"I just purchased my third Visual book (my first two are dog-eared now!) and, once again, your product has surpassed my expectations. Keep up the wonderful work!"
—Tracey Moore (Memphis, TN)

  • High-resolution screen shots demonstrate each task
  • Succinct explanations walk you through step by step
  • Two-page lessons break big topics into bite-sized modules
  • "Apply It" and "Extra" sidebars highlight useful tips

 

 

Table of Contents

HOW TO USE THIS BOOK.

1 GETTING INTO AJAX.

Get into Ajax.

Using an Ajax-Based Application.

Run a Live Search.

Autocomplete What You Type.

Modify Web Pages without Page Refreshes.

Drag and Drop with Ajax.

Get Instant Login Feedback.

Create Rich Displays with Ajax.

Create Games with Ajax.

Chat Online Using Ajax.

Download Images with Ajax.

2 CREATING AJAX USING JAVASCRIPT.

Create a Script.

View JavaScript Errors.

Handle Browser Events.

Create JavaScript Functions.

Display Results Where You Choose in a Page.

Connect HTML Buttons to JavaScript.

Display Text in Text Fields.

Pass Arguments to Functions.

Return Data from Functions.

Store Data in Variables.

Work with Operators.

Use JavaScript Operators.

Create Local Variables.

Make Choices with the if Statement.

Using Comparison Operators.

Determine Browser Type and Version.

Repeat Code Execution with the for Loop.

Handle Multiple Data Items at Once Using Arrays.

Using the while Loop.

3 WRITING AJAX CODE.

Write Ajax.

Create an XMLHttpRequest Object Using JavaScript.

Open the XMLHttpRequest Object.

Get Ready to Download.

Download Data with the XMLHttpRequest Object.

Select Relative or Absolute URLs.

Create Newer XMLHttpRequest Objects in Internet Explorer.

Start Using Server-Side Scripts.

Create XML Documents for Download.

Download XML from the Server.

Create a Function That Adds Numbers.

Extract Data from XML Elements.

Read Data Sent to the Server.

Pass Data to the Server with GET.

Pass Data to the Server with POST.

4 GETTING MORE AJAX POWER.

Create Server-Side Mouseovers.

Download JavaScript Using Ajax.

Create a Live Search Using Google Suggest.

Connect to Google Suggest.

Display the Google Suggest Results.

Read Input and Send It to the Server for Validation.

Return Validation from the Server.

Get Header Information.

Extract Specific Header Data.

Check If a Document Exists.

Use Two XMLHttpRequest Objects at the Same Time.

Create an Array of XMLHttpRequest Objects.

Handle Multiple XMLHttpRequest Requests at the Same Time.

Call a Different Domain Safely.

Debug Ajax Code.

5 CREATING AJAX APPLICATIONS.

Convert Mouse Events into a Standard Format.

Handle Mouse Down and Mouse Up Events.

Handle Mouse Move Events.

Handle Mouse Click and Double-Click Events.

Handle Mouse Enter and Leave Events.

Create a Shopping Cart Application.

Drag an HTML Element in a Shopping Cart Application.

Drop an HTML Element in a Shopping Cart Application.

Update a Shopping Cart on the Server.

Download Image Names Using Ajax.

Display Images Using Ajax and Dynamic HTML.

Create an Ajax-Driven Menu System.

Display a Menu Using Cascading Styles.

Hide a Menu Using CSS.

Read Ajax-Driven Menu Selections.

6 EXPLORING THE BASIC AJAX FRAMEWORKS.

Using Ajax Frameworks.

Create the readTextWithGet Function.

Get Text with the readTextWithGet Function.

Create the readXmlWithGet Function.

Get XML with the readXmlWithGet Function.

Create the readTextWithPost Function.

Get Text with the readTextWithPost Function.

Create the readXmlWithPost Function.

Get XML with the readXmlWithPost Function.

Install AJAXLib.

Access the Server With AJAXLib.

Download Data With AJAXLib.

Install libXmlRequest.

Access the Server with libXmlRequest.

Download Data with libXmlRequest.

7 USING MORE POWERFUL AJAX FRAMEWORKS.

Install XHConn.

Access the Server with XHConn.

Download Data with XHConn.

Install SACK.

Access the Server with SACK.

Download Data with SACK.

Install Sarissa.

Access the Server with Sarissa.

Download Data with Sarissa.

Install Interactive Website Framework.

Connecting to the Server with the Interactive Website Framework.

Download Data with the Interactive Website Framework.

Install RICO.

Access the Server with RICO.

Download Data with RICO.

8 HANDLING SERVER-SIDE AJAX FRAMEWORKS.

Install SAJAX.

Write Server-Side Code with SAJAX.

Write Browser-Side Code with SAJAX.

Install Xajax.

Write Server-Side Code with Xajax.

Write Browser-Side Code with Xajax.

Install LibAjax.

Write Server-Side Code with LibAjax.

Write Browser-Side Code with LibAjax.

Chat with Direct Web Remoting.

Edit an Interactive Table with DWR.

Handling E-Mail with Echo2.

Support Auto-complete with the Ajax Tag Library.

Update HTML Elements with Ajax Tag Library.

9 HANDLING XML WITH AJAX.

Create an XML Document.

Write Well-Formed XML.

Handle XML in JavaScript.

Get the XML Document Element from Downloaded XML.

Navigate XML Using firstChild and lastChild.

Navigate XML Using nextSibling and previousSibling.

Extract Text Data From an XML Element.

Handle White Space in Mozilla and Firefox.

Create the removeWhitespace Function in Mozilla and Firefox.

Use the removeWhitespace Function in Mozilla and Firefox.

Find XML Elements by Name.

Extract XML Attributes.

Create a Valid XML Document.

Validate an XML Document.

Report XML Validation Errors.

10 USING CSS WITH AJAX.

Set Up CSS Styles.

Set Font Family and Size.

Underline or Italicize Text.

Make Text Bold.

Align Text.

Set Foreground Colors.

Make New Text More Noticeable.

Set Background Colors.

Set Background Images.

Position Elements Using Absolute Positioning.

Position Elements Using Relative Positioning.

Set HTML Element Visibility.

Create Web Page Pop-Ups.

Move Elements in a Web Page.

Overlap HTML Elements.

11 SUPPORTING AJAX ON THE SERVER WITH PHP.

Create a PHP Page.

Create HTML to Send to the Browser.

Work with Variables.

Create Arrays.

Use PHP Operators.

Handle Text String Data.

Make Choices with the if Statement.

Read Data from Text Fields.

Read Data from Check Boxes.

Read Data from Radio Buttons.

Send XML to the Browser.

Work with the for Loop.

Work with the while Loop.

Work with the foreach Loop.

Read Files on the Server.

INDEX.

商品描述(中文翻譯)

**描述**

歡迎來到唯一一本以視覺方式探討專業級電腦主題的指南書系列。打開書本,您將發現逐步的螢幕截圖,展示超過150個關鍵的Ajax技術,包括:

- 從後台下載數據
- 啟用即時的即時搜索
- 玩使用Ajax的遊戲
- 填充彈出式菜單
- 從JavaScript訪問網頁
- 處理菜單、顏色和背景
- 創建互動式滑鼠懸停效果
- 更新購物車
- 安裝Ajax框架
- 驗證來自伺服器的XML
- 啟用輸入術語的自動完成
- 從後台下載圖片

「我剛剛購買了我的第三本Visual書(前兩本現在已經翻得很舊了!),再次,您的產品超出了我的期望。繼續保持這樣的好工作!」
—Tracey Moore(田納西州孟菲斯)

- 高解析度的螢幕截圖展示每個任務
- 簡潔的解釋逐步引導您
- 兩頁的課程將大主題分解為小模塊
- 「應用它」和「額外」側邊欄突顯有用的提示

**目錄**

**如何使用本書。**

**1 進入Ajax。**
進入Ajax。
使用基於Ajax的應用程式。
運行即時搜索。
自動完成您輸入的內容。
在不重新整理頁面的情況下修改網頁。
使用Ajax進行拖放。
獲取即時登錄反饋。
使用Ajax創建豐富的顯示。
使用Ajax創建遊戲。
使用Ajax在線聊天。
使用Ajax下載圖片。

**2 使用JavaScript創建Ajax。**
創建腳本。
查看JavaScript錯誤。
處理瀏覽器事件。
創建JavaScript函數。
在頁面中選擇顯示結果的位置。
將HTML按鈕連接到JavaScript。
在文本框中顯示文本。
將參數傳遞給函數。
從函數返回數據。
將數據存儲在變量中。
使用運算符。
使用JavaScript運算符。
創建局部變量。
使用if語句做出選擇。
使用比較運算符。
確定瀏覽器類型和版本。
使用for循環重複執行代碼。
使用數組同時處理多個數據項。
使用while循環。

**3 編寫Ajax代碼。**
編寫Ajax。
使用JavaScript創建XMLHttpRequest對象。
打開XMLHttpRequest對象。
準備下載。
使用XMLHttpRequest對象下載數據。
選擇相對或絕對URL。
在Internet Explorer中創建更新的XMLHttpRequest對象。
開始使用伺服器端腳本。
創建可下載的XML文檔。
從伺服器下載XML。
創建一個添加數字的函數。
從XML元素中提取數據。
讀取發送到伺服器的數據。
使用GET將數據傳遞給伺服器。
使用POST將數據傳遞給伺服器。

**4 獲取更多Ajax功能。**
創建伺服器端的滑鼠懸停效果。
使用Ajax下載JavaScript。
使用Google Suggest創建即時搜索。
連接到Google Suggest。
顯示Google Suggest的結果。
讀取輸入並將其發送到伺服器進行驗證。
從伺服器返回驗證。
獲取標頭信息。
提取特定的標頭數據。
檢查文檔是否存在。
同時使用兩個XMLHttpRequest對象。
創建XMLHttpRequest對象的數組。
同時處理多個XMLHttpRequest請求。
安全地調用不同的域。
調試Ajax代碼。

**5 創建Ajax應用程式。**
將滑鼠事件轉換為標準格式。
處理滑鼠按下和滑鼠放開事件。
處理滑鼠移動事件。
處理滑鼠點擊和雙擊事件。
處理滑鼠進入和離開事件。
創建購物車應用程式。
在購物車應用程式中拖動HTML元素。
在購物車應用程式中放下HTML元素。
在伺服器上更新購物車。
使用Ajax下載圖片名稱。
使用Ajax和動態HTML顯示圖片。
創建一個基於Ajax的菜單系統。
使用層疊樣式顯示菜單。
使用CSS隱藏菜單。
讀取基於Ajax的菜單選擇。

**6 探索基本的Ajax框架。**
使用Ajax框架。
創建readTextWithGet函數。
使用readTextWithGet函數獲取文本。
創建readXmlWithGet函數。
使用readXmlWithGet函數獲取XML。
創建readTextWithPost函數。
使用readTextWithPost函數獲取文本。
創建readXmlWithPost函數。
使用readXmlWithPost函數獲取XML。
安裝AJAXLib。
使用AJAXLib訪問伺服器。
使用AJAXLib下載數據。
安裝libXmlRequest。
使用libXmlRequest訪問伺服器。
使用libXmlRequest下載數據。

**7 使用更強大的Ajax框架。**
安裝XHConn。
使用XHConn訪問伺服器。
使用XHConn下載數據。
安裝SACK。
使用SACK訪問伺服器。
使用SACK下載數據。
安裝Sarissa。
使用Sarissa訪問伺服器。
使用Sarissa下載數據。
安裝互動網站框架。
使用互動網站框架連接到伺服器。
使用互動網站框架下載數據。
安裝RICO。
使用RICO訪問伺服器。
使用RICO下載數據。

**8 處理伺服器端的Ajax框架。**
安裝SAJAX。
使用SAJAX編寫伺服器端代碼。
使用SAJAX編寫瀏覽器端代碼。
安裝Xajax。
使用Xajax編寫伺服器端代碼。
使用Xajax編寫瀏覽器端代碼。
安裝LibAjax。
使用LibAjax編寫伺服器端代碼。
使用LibAjax編寫瀏覽器端代碼。
使用Direct Web Remoting進行聊天。
使用DWR編輯互動表格。
使用Echo2處理電子郵件。
使用Ajax標籤庫支持自動完成。
使用Ajax標籤庫更新HTML元素。

**9 使用Ajax處理XML。**
創建XML文檔。
編寫格式正確的XML。
在JavaScript中處理XML。
從下載的XML中獲取XML文檔元素。
使用firstChild和lastChild導航XML。
使用nextSibling和previousSibling導航XML。
從XML元素中提取文本數據。
在Mozilla和Firefox中處理空白字符。
在Mozilla和Firefox中創建removeWhitespace函數。
在Mozilla和Firefox中使用removeWhitespace函數。
按名稱查找XML元素。
提取XML屬性。
創建有效的XML文檔。
驗證XML文檔。
報告XML驗證錯誤。

**10 使用CSS與Ajax。**
設置CSS樣式。
設置字體系列和大小。
為文本添加下劃線或斜體。
使文本加粗。
對齊文本。
設置前景顏色。
使新文本更顯眼。
設置背景顏色。
設置背景圖片。
使用絕對定位定位元素。
使用相對定位定位元素。
設置HTML元素的可見性。
創建網頁彈出窗口。
在網頁中移動元素。
重疊HTML元素。

**11 使用PHP在伺服器上支持Ajax。**
創建PHP頁面。
創建HTML以發送到瀏覽器。
處理變量。
創建數組。
使用PHP運算符。
處理文本字符串數據。
使用if語句做出選擇。
從文本框中讀取數據。
從複選框中讀取數據。
從單選按鈕中讀取數據。
將XML發送到瀏覽器。
使用for循環。
使用while循環。
使用foreach循環。
讀取伺服器上的文件。

**索引。**