Ajax: Your visual blueprint for creating rich Internet applications

Steve Holzner

  • 出版商: Hungry Minds
  • 出版日期: 2006-07-31
  • 售價: $1,250
  • 貴賓價: 9.5$1,188
  • 語言: 英文
  • 頁數: 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.

商品描述(中文翻譯)

《AJAX視覺化指南》

描述


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




  • 從背後下載數據

  • 實時搜索

  • 使用Ajax玩遊戲

  • 填充彈出菜單

  • 從JavaScript訪問網頁

  • 處理菜單、顏色和背景

  • 創建交互式滑鼠懸停效果

  • 更新購物車

  • 安裝Ajax框架

  • 驗證服務器上的XML

  • 啟用自動完成輸入

  • 在背後下載圖片


“我剛剛購買了我的第三本視覺化書籍(我的前兩本現在都破舊了!),一次又一次地,你的產品超出了我的期望。繼續做出出色的工作!”
—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對象。


創建```