JavaScript Cookbook (Paperback)

Shelley Powers



Why reinvent the wheel every time you run into a problem with JavaScript? This cookbook is chock-full of code recipes that address common programming tasks, as well as techniques for building web apps that work in any browser. Just copy and paste the code samples into your project -- you’ll get the job done faster and learn more about JavaScript in the process.

You'll also learn how to take advantage of the latest features in ECMAScript 5 and HTML5, including the new cross-domain widget communication technique, HTML5's video and audio elements, and the drawing canvas. You'll find recipes for using these features with JavaScript to build high-quality application interfaces.

  • Create interactive web and desktop applications
  • Work with JavaScript objects, such as String, Array, Number, and Math
  • Use JavaScript with Scalable Vector Graphics (SVG) and the canvas element
  • Store data in various ways, from the simple to the complex
  • Program the new HTML5 audio and video elements
  • Implement concurrent programming with Web Workers
  • Use and create jQuery plug-ins
  • Use ARIA and JavaScript to create fully accessible rich internet applications



您還將學習如何利用ECMAScript 5和HTML5的最新功能,包括新的跨域小部件通信技術、HTML5的視頻和音頻元素以及繪圖畫布。您將找到使用這些功能與JavaScript構建高質量應用程序界面的食譜。

- 創建交互式Web和桌面應用程序
- 使用JavaScript對象,如String、Array、Number和Math
- 使用可縮放矢量圖形(SVG)和畫布元素進行JavaScript編程
- 從簡單到複雜的方式存儲數據
- 編程新的HTML5音頻和視頻元素
- 使用Web Workers實現並發編程
- 使用和創建jQuery插件
- 使用ARIA和JavaScript創建完全可訪問的豐富互聯網應用程序