Prototype and Scriptaculous in Action
暫譯: Prototype 與 Scriptaculous 實戰解析
Dave Crane, Bear Bibeault, Tom Locke
- 出版商: Manning
- 出版日期: 2007-03-23
- 售價: $1,575
- 貴賓價: 9.5 折 $1,496
- 語言: 英文
- 頁數: 544
- 裝訂: Paperback
- ISBN: 1933988037
- ISBN-13: 9781933988030
-
相關分類:
Ajax、JavaScript
立即出貨(限量) (庫存=3)
買這商品的人也買了...
-
$380$300 -
$880$695 -
$780$663 -
$600$474 -
$650$507 -
$550$468 -
$640$506 -
$490$417 -
$1,500$1,425 -
$1,860$1,767 -
$800$680 -
$1,440$1,368 -
$420$412 -
$880$695 -
$620$409 -
$299Professional XNA Game Programming: For Xbox 360 and Windows
-
$880$695 -
$780$616 -
$580$452 -
$600$480 -
$2,030$1,929 -
$1,360Painting the Web
-
$1,570$1,492 -
$1,570$1,492 -
$299SQL for Microsoft Access, 2/e (Paperback)
相關主題
商品描述
Description
“Shows how Prototype and Scriptaculous let you concentrate on whats important: implementing your ideas.”
—Thomas Fuchs, Creator of Scriptaculous, from the Foreword“Of all the books on my shelf, this is the one I go to the most.”
—Philip Hallstrom, CardPlayer.com“Simplifies Ajax development—a great reference.”
—Mark Eagle, MATRIX Resources, Inc.“Cant wait to implement ideas from this book!”
—Jeff Cunningham, The Weather Channel InteractiveCommon Ajax tasks should be easy, and with Prototype and Scriptaculous they are. Prototype and Scriptaculous are libraries of reusable JavaScript code that simplify Ajax development. Prototype provides helpful methods and objects that extend JavaScript in a safe, consistent way. Its clever Ajax request model simplifies cross-browser development. Scriptaculous, which is based on Prototype, offers handy pre-fabricated widgets for rich UI development.
Prototype and Scriptaculous in Action is a comprehensive, practical guide that walks you feature-by-feature through the two libraries. First, youll use Scriptaculous to make easy but powerful UI improvements. Then youll dig into Prototypes elegant and sparse syntax. See how a few characters of Prototype code can save a dozen lines of JavaScript. By applying these techniques, you can concentrate on the function and flow of your application instead of the coding details. This book is written for web developers with a working knowledge of JavaScript.
Table of Contents
foreword
preface
acknowledgments
about this book
about the title
about the cover illustration
Part 1 Getting Started
- 1 Introducing Prototype and Scriptaculous
- 1.1 A brief history of Ajax
- 1.2 What is Prototype?
- 1.3 What is Scriptaculous?
- 1.4 Applying Prototype and Scriptaculous
- 1.5 Summary
- 2 Introducing QuickGallery
- 2.1 Design and implementation
- 2.2 Evaluating the classic web app model
- 2.3 Summary
- 3 Simplifying Ajax with Prototype
- 3.1 Redesigning for Ajax
- 3.2 Using XML and Ajax
- 3.3 Using JSON and Ajax
- 3.4 Summary
- 4 Using Prototypes Advanced Ajax Features
- 4.1 Prototypes advanced Ajax classes
- 4.2 Using HTML and Ajax
- 4.3 Comparing data- and content-centric Ajax
- 4.4 Summary
Part 2 Scriptaculous Quickly
- 5 Scriptaculous Effects
- 5.1 Quick win: adding an effect with only one line
- 5.2 Setting up Scriptaculous and the examples
- 5.3Types of Scriptaculous effects
- 5.4 Understanding the effects
- 5.5 Easy toggling of Show and Hide effects
- 5.6 Working with transitions
- 5.7 Gaining control during effects
- 5.8 Canceling effects
- 5.9 Controlling multiple effects
- 5.10 Summary
- 6 Scriptaculous Controls
- 6.1 Using the sample programs for this chapter
- 6.2 The in-place text editor
- 6.3 The InPlaceCollectionEditor
- 6.4 The Ajax autocompleter control
- 6.5 The Scriptaculous local autocompleter control
- 6.6 The slider control
- 6.7 Summary
- 7 Scriptaculous Drag and Drop
- 7.1 The sample code for this chapter
- 7.2 The sample code for this chapter
- 7.3 Dragging things around
- 7.4 Dropping dragged things
- 7.5 Sorting by drag and drop
- 7.6 Summary
Part 3 Prototype in Depth
- 8 All About Objects
- 8.1 Introducing the Scratchpad application
- 8.2 The Object type
- 8.3 Objects and Prototype
- 8.4 Summary
- 9 Fun with Functions
- 9.1 JavaScript functions
- 9.2 Extending functions with Prototype.js
- 9.3 Summary
- 10 Arrays Made Easy
- 10.1 Introducing Arrays
- 10.2 The native JavaScript Array
- 10.3 Prototype.js and Arrays
- 10.4 Methods of the Enumerable object
- 10.5 Working with Hashes and ObjectRanges
- 10.6 Summary
- 11 Back to the Browser
- 11.1 A crash course in DOM methods
- 11.2 Prototype and the DOM
- 11.3 Extending the Event object
- 11.4 Working with HTML forms
- 11.5 Summary
Part 4 Advanced Topics
- 12 Prototype and Scriptaculous in Practice
- 12.1 QuickGallery application requirements
- 12.2 Building the slideshow editor
- 12.3 Adding Ajax-based persistence
- 12.4 Creating the toolbar
- Building the slideshow player 384
- 12.5 Putting it all together
- 12.6 Summary
- 13 Prototype, Scriptaculous, and Rails
- 13.1 Generating JavaScript
- 13.2 Ajax helpers
- 13.3 Scriptaculous helpers
- 13.4 To JavaScript or not to JavaScript
- 13.5 The next level: RJS
- 13.6 Summary
HTTP Primer
Measuring HTTP Traffic
Installing and Running Tomcat 5.5
Installing and Running PHP
Porting Server-Side Techniques
index![]()
商品描述(中文翻譯)
**描述**
「展示了 Prototype 和 Scriptaculous 如何讓你專注於重要的事情:實現你的想法。」
— Thomas Fuchs, Scriptaculous 的創造者,前言中提到
「在我書架上的所有書籍中,這是我最常參考的一本。」
— Philip Hallstrom, CardPlayer.com
「簡化了 Ajax 開發——一本很好的參考書。」
— Mark Eagle, MATRIX Resources, Inc.
「迫不及待想要實現這本書中的想法!」
— Jeff Cunningham, The Weather Channel Interactive
常見的 Ajax 任務應該是簡單的,而使用 Prototype 和 Scriptaculous 它們確實如此。Prototype 和 Scriptaculous 是可重用的 JavaScript 代碼庫,簡化了 Ajax 開發。Prototype 提供了有用的方法和對象,以安全、一致的方式擴展 JavaScript。其巧妙的 Ajax 請求模型簡化了跨瀏覽器的開發。基於 Prototype 的 Scriptaculous 提供了方便的預製小部件,用於豐富的 UI 開發。
《Prototype 和 Scriptaculous 實戰》是一本全面的實用指南,逐步介紹這兩個庫的功能。首先,你將使用 Scriptaculous 進行簡單但強大的 UI 改進。然後,你將深入了解 Prototype 的優雅和簡潔的語法。看看幾個字符的 Prototype 代碼如何節省十幾行的 JavaScript。通過應用這些技術,你可以專注於應用程序的功能和流程,而不是編碼細節。本書是為具有 JavaScript 基礎知識的網頁開發者撰寫的。
**目錄**
前言
序言
致謝
關於本書
關於書名
關於封面插圖
**第一部分 開始使用**
1. 介紹 Prototype 和 Scriptaculous
1.1 Ajax 的簡史
1.2 什麼是 Prototype?
1.3 什麼是 Scriptaculous?
1.4 應用 Prototype 和 Scriptaculous
1.5 總結
2. 介紹 QuickGallery
2.1 設計與實現
2.2 評估經典的網頁應用模型
2.3 總結
3. 使用 Prototype 簡化 Ajax
3.1 為 Ajax 重新設計
3.2 使用 XML 和 Ajax
3.3 使用 JSON 和 Ajax
3.4 總結
4. 使用 Prototype 的高級 Ajax 功能
4.1 Prototype 的高級 Ajax 類
4.2 使用 HTML 和 Ajax
4.3 比較數據導向和內容導向的 Ajax
4.4 總結
**第二部分 快速使用 Scriptaculous**
5. Scriptaculous 效果
5.1 快速獲勝:僅用一行添加效果
5.2 設置 Scriptaculous 和示例
5.3 Scriptaculous 效果的類型
5.4 理解效果
5.5 輕鬆切換顯示和隱藏效果
5.6 使用過渡效果
5.7 在效果過程中獲得控制
5.8 取消效果
5.9 控制多個效果
5.10 總結
6. Scriptaculous 控件
6.1 使用本章的示例程序
6.2 就地文本編輯器
6.3 InPlaceCollectionEditor
6.4 Ajax 自動完成控件
6.5 Scriptaculous 本地自動完成控件
6.6 滑塊控件
6.7 總結
7. Scriptaculous 拖放
7.1 本章的示例代碼
7.2 本章的示例代碼
7.3 拖動物件
7.4 放下拖動的物件
7.5 通過拖放進行排序
7.6 總結
**第三部分 深入了解 Prototype**
8. 所有關於對象
8.1 介紹 Scratchpad 應用
8.2 對象類型
8.3 對象與 Prototype
8.4 總結
9. 與函數的樂趣
9.1 JavaScript 函數
9.2 使用 Prototype.js 擴展函數
9.3 總結
10. 輕鬆使用數組
10.1 介紹數組
10.2 原生 JavaScript 數組
10.3 Prototype.js 和數組
10.4 Enumerable 對象的方法
10.5 使用 Hashes 和 ObjectRanges
10.6 總結
11. 回到瀏覽器
11.1 DOM 方法的速成課程
11.2 Prototype 和 DOM
11.3 擴展事件對象
11.4 使用 HTML 表單
11.5 總結
**第四部分 高級主題**
12. Prototype 和 Scriptaculous 的實踐
12.1 QuickGallery 應用需求
12.2 建立幻燈片編輯器
12.3 添加基於 Ajax 的持久性
12.4 創建工具欄
12.5 將所有內容整合在一起
12.6 總結
13. Prototype、Scriptaculous 和 Rails
13.1 生成 JavaScript
13.2 Ajax 幫助器
13.3 Scriptaculous 幫助器
13.4 是否使用 JavaScript
13.5 下一個層次:RJS
13.6 總結
HTTP 入門
測量 HTTP 流量
安裝和運行 Tomcat 5.5
安裝和運行 PHP
移植伺服器端技術