HTML5應用編程

出版時間:2012-6  出版社:東南大學出版社  作者:凱西恩  頁數(shù):128  字數(shù):171000  
Tag標簽:無  

內(nèi)容概要

《HTML5應用編程(影印版)》Zachary
Kessin著:發(fā)掘HTML5的全部特性,學習如何搭建能夠運行在移動設備上的完整的、自包含的應用,這些應用足以和桌面應用相抗衡。通過這本實用的指南,你會發(fā)現(xiàn)在HTML5中與數(shù)據(jù)打交道的有效方法,比如離線存儲和多線程處理。你會熟悉那些能夠幫助你充分利用所有HTML5元素的高級JavaScript工具?!禜TML5應用編程(影印版)》不僅包含了示例代碼,同時它還為有經(jīng)驗的JavaScript開發(fā)者展示了HTML5是如何把Web變成一流的開發(fā)環(huán)境的。

作者簡介

作者:(美國)凱西恩(Zachary Kessin)  凱西恩(Kessin Z.),在開發(fā)交互式Web應用上已經(jīng)有二十多年的經(jīng)驗了。他關(guān)注于使用Javascript在瀏覽器中搭建復雜應用,使用Selenium測試瀏覽器應用,功能化編程和代碼生成。

書籍目錄

Preface
1. The Web As Application Platform
Adding Power to Web Applicatio
Developing Web Applicatio
JavaScript's Triumph
2. The Power of JavaScript
Nonblocking I/O and Callbacks
Lambda Functio Are Powerful
Closures
Functional Programming
Prototypes and How to Expand Objects
Expanding Functio with Prototypes
Currying and Object Paramete
Array Iteration Operatio
You Can Extend Objects, Too
3. Testing JavaScript Applicatio
QUnit
A Simple Example
Testing with QUnit
Selenium
Selenium Commands
Cotructing Tests with the Selenium IDE
Automatically Running Tests
Selenese Command Programming Interface
Running QUnit from Selenium
Selenium RC and a Test Farm
4. Local Storage
The localStorage and sessionStorage Objects
Using localStorage in ExtJS
Offline Loading with a Data Store
Storing Changes for a Later Server Sync
JQuery Plug-i
DSt
jStore
5. IndexedDB
Adding and Updating Records
Adding Indexes
Retrieving Data
Deleting Data
6. Files
Blobs
Working with Files
Uploading Files
Drag-and-Drop
Putting It All Together
Fiiesystem
7. Taking It Offline .
Introduction to the Manifest File
Structure of the Manifest File
Updates to the Manifest File
Events
Debugging Manifest Files
8. Splitting Up Work Through Web Worke
Web Worker Use Cases
Graphics
Maps
Using Web Worke
The Worker Environment
Worker Communication
Web Worker Fractal Example
Testing and Debugging Web Worke
A Pattern for Reuse of Muhithread Processing
Libraries for Web Worke
9. Web Sockets
The Web Sockets Interface
Setting Up a Web Socket
Web Socket Example
Web Socket Protocol
Ruby Event Machine
Erlang Yaws
10. New Tags
Tags for Applicatio
Accessibility Through WAI-ARIA
Microdata
New Form Types
Audio and Video
Canvas and SVG
Geolocation
New CSS
Appendix: JavaScript Tools You Should Know
Index

章節(jié)摘錄

版權(quán)頁:   插圖:   Indexes can be added or removed only in a setVersion transaction. An index can becreated when a store is created, or later with the index() method (see Example 5-6),This method will create the index if it does not exist. It will also return an index objectthat can be used to iterate over the index. Example 5-6. Using an index$. indexeddb(db), objectStore(objectStore), index(field), openCursor( [1,10). each (write);One key difference between a data store like IndexedDB and most other forms of datastorage is that IndexedDB runs on the customer's browser, so updating it requires alittle more thought than a data storage mechanism that runs on a small set of serversin a central location. The JavaScript code must be able to cope with the possibility thatthe user may have an out-of-date store and update on the fly.It is possible to check the current version of a store on a customer's computer and, ifneeded, bring it up to the current version. For example, version 1.0 of the software mayhave two stores, while in version 1.1 a third store has been added, as well as a newindex in one of the original tables. By checking the version, your code can know if itshould apply any needed updates or if the user's data store is set up correctly. ThejQuery IndexedDB plug-in handles this automatically. Retrieving DataAfter data has been added to an object store, there must be a way to query and displayit. There are several ways of interest to query data. The program may wish to displayall the data, a subset of the data, or just one row.To retrieve one row, identified by its primary key, use the get method as shown inExample 5-7: This method returns a promise object which is accessed via the thenmethod. The then takes two functions as callbacks: the first is called on success withthe object from the database, and the second, in case of error, with an error object.

媒體關(guān)注與評論

  “HTML5是這些天最火熱的詞,但是它不僅僅是一個專業(yè)名詞?!禜TML5應用編程》提供了足夠的知識來指導你學習創(chuàng)建現(xiàn)代Web應用所需的新技術(shù)”?!  猂alph Whitbeck The Officiali Query Podcast的創(chuàng)辦者之一

編輯推薦

《HTML5應用編程(影印版)(英文)》不僅包含了示例代碼,同時它還為有經(jīng)驗的JavaScript開發(fā)者展示了HTML5是如何把Web變成一流的開發(fā)環(huán)境的。

圖書封面

圖書標簽Tags

評論、評分、閱讀與下載


    HTML5應用編程 PDF格式下載


用戶評論 (總計2條)

 
 

  •   還沒看。不過應該還好。
  •   書比較薄。書里的例子比較簡潔,缺乏必要的上下文。如果想要使用,書所附的CD是必要的。但是....CD呢?也許影印的人忘了吧!
 

250萬本中文圖書簡介、評論、評分,PDF格式免費下載。 第一圖書網(wǎng) 手機版

京ICP備13047387號-7