• Complain

Powers - JavaScript Cookbook

Here you can read online Powers - JavaScript Cookbook full text of the book (entire story) in english for free. Download pdf and epub, get meaning, cover and reviews about this ebook. year: 2010, publisher: OReilly Media, genre: Children. Description of the work, (preface) as well as reviews are available. Best literature library LitArk.com created for fans of good reading and offers a wide selection of genres:

Romance novel Science fiction Adventure Detective Science History Home and family Prose Art Politics Computer Non-fiction Religion Business Children Humor

Choose a favorite category and find really read worthwhile books. Enjoy immersion in the world of imagination, feel the emotions of the characters or learn something new for yourself, make an fascinating discovery.

No cover
  • Book:
    JavaScript Cookbook
  • Author:
  • Publisher:
    OReilly Media
  • Genre:
  • Year:
    2010
  • Rating:
    3 / 5
  • Favourites:
    Add to favourites
  • Your mark:
    • 60
    • 1
    • 2
    • 3
    • 4
    • 5

JavaScript Cookbook: summary, description and annotation

We offer to read an annotation, description, summary or preface (depends on what the author of the book "JavaScript Cookbook" wrote himself). If you haven't found the necessary information about the book — write in the comments, we will try to find it.

Covering both ECMAScript 5 and HTML5, JavaScript Cookbook helps you take advantage of the latest web features, including HTML5s persistent storage mechanisms and drawing canvas. Youll find solutions for integrating these features with JavaScript into UIs that people will enjoy using. The recipes in this book not only help you get things done, theyll also help you develop applications that work reliably in every browser.

Powers: author's other books


Who wrote JavaScript Cookbook? Find out the surname, the name of the author of the book and a list of all author's works by series.

JavaScript Cookbook — read online for free the complete book (whole text) full work

Below is the text of the book, divided by pages. System saving the place of the last page read, allows you to conveniently read the book "JavaScript Cookbook" online for free, without having to search again every time where you left off. Put a bookmark, and you can go to the page where you finished reading at any time.

Light

Font size:

Reset

Interval:

Bookmark:

Make
JavaScript Cookbook
Shelley Powers
Editor
Simon St. Laurent

Copyright 2010 Shelley Powers

OReilly books may be purchased for educational, business, or sales promotional use. Online editions are also available for most titles (.

Nutshell Handbook, the Nutshell Handbook logo, and the OReilly logo are registered trademarks of OReilly Media, Inc. JavaScript Cookbook , the image of a lesser egret, and related trade dress are trademarks of OReilly Media, Inc.

Many of the designations used by manufacturers and sellers to distinguish their products are claimed as trademarks. Where those designations appear in this book, and OReilly Media, Inc., was aware of a trademark claim, the designations have been printed in caps or initial caps.

While every precaution has been taken in the preparation of this book, the publisher and author assume no responsibility for errors or omissions, or for damages resulting from the use of the information contained herein.

OReilly Media SPECIAL OFFER Upgrade this ebook with OReilly for more - photo 1

O'Reilly Media

SPECIAL OFFER: Upgrade this ebook with OReilly

for more information on this offer!

Please note that upgrade offers are not available from sample content.

A Note Regarding Supplemental Files

Supplemental files and examples for this book can be found at http://examples.oreilly.com/9780596806149/. Please use a standard desktop web browser to access these files, as they may not be accessible from all ereader devices.

All code files or examples referenced in the book will be available online. For physical books that ship with an accompanying disc, whenever possible, weve posted all CD/DVD content. Note that while we provide as much of the media content as we are able via free download, we are sometimes limited by licensing restrictions. Please direct any questions or concerns to .

Preface

I wrote my first book on JavaScript 15 years ago, and had to scramble just to find enough material to fill a book. With the JavaScript Cookbook , I had to choose among hundreds of uses to determine what to include. After all these years of watching JavaScript grow, I am still surprised at how far-reaching the use of JavaScript has become. In my opinion, there is no more useful programming language or development tool. About the only technology with wider use is HTML.

This book is for those who have dabbled with JavaScript and wish to try out new techniques, or increase their grasp of both fundamentals and advanced features of JavaScript. Along the way, Ill demonstrate how to:

  • Work with the JavaScript objects, such as String, Array, Number, and Math

  • Create reusable objects

  • Query and create new elements in the Document Object Model (DOM)

  • Use the new Selectors API for efficient and targeted querying

  • Use JavaScript with new HTML5 technologies, such as the new media elements, video and audio

  • Create interactive applications

  • Manage your web page space

  • Store data in various ways, from the simple to the complex

  • Use JavaScript with Scalable Vector Graphics (SVG) and the canvas element

  • Work with some of the interesting data structures, like Microformats and RDFa

  • Package your library for others to use, as well as use other libraries in your applications

  • Ensure your JavaScript applications are accessible through the use of Accessible Rich Internet Applications (ARIA)

  • Work in environments other than the typical desktop browser, such as creating mobile phone web applications, or extending Photoshop with new behaviors

  • Use and create jQuery plug-ins

  • Develop Ajax applications

  • Debug your applications using your browsers debugger

  • Work with the new HTML5 drag-and-drop

  • Communicate using the new HTML5 cross-documentation techniques

  • Implement concurrent programming with Web Workers

  • Use the File API to access a desktop file directly in client-side JavaScript

Its not a complete encyclopedia of JavaScript use todayno one book can cover all there is to cover. But hopefully, youll come away with an appreciation of all you can do with JavaScript.

Bon appetit!

Audience, Assumptions, and Approach

Readers of this book should have some exposure to web development, and the use of JavaScript. In addition, the recipe format means Ill be focusing on specific tasks, rather than providing an overall general introduction. I wont cover every last aspect of a JavaScript topic, such as Strings. Instead, Ill focus on the more common tasks, or challenges, associated with the topic.

There will be lots of code, some of it in code snippets, some in full-page applications. The recipes are also cross-referenced, so if I mention a specific topic in one recipe that was covered in another, Ill include this information in the See Also section for the recipe. To assist you, Ive also created example code for all of the recipes that you can download and work with immediately.

Target Browsers

Throughout the book, Ill mention the target browsers. The majority of example code in this book has been designed for, and tested to work with, the latest releases of the most commonly used browsers:

  • Firefox 3.6x on Mac and Windows

  • Safari 4.0x on Mac and Windows

  • Opera 10.x on Mac and Windows

  • Chrome 5.x on Windows

  • Internet Explorer 8 on Windows

I didnt have a Linux machine to test for that environment, but, knock on wood, most of the recipes should work in a Linux environment with Firefox. I also didnt have a System 7 for testing the IE9 preview, but most of the applications should work, including those using SVG (a new addition for IE9).

Some of the recipes required a specialized environment, such as a mobile device or emulator, or beta (or alpha) release of the browser. I made a note where an example would not work with the target browsers, or required a specialized environment or browser. In addition, Im introducing several new technologies and APIs that are only implemented in alpha/beta releases of certain of the browsers. Again, I included a note about browser support.

Many of the examples wont work with IE6. Before I even began the book I decided not to provide support for IE6including any workaround code. Many major sites no longer support this far too old and too insecure browser, including Amazon, Google, YouTube, and Facebook. In addition, the workarounds necessary for IE6 are so well-known and so well-documented online, that I felt it wasnt necessary to also include coverage in this book.

Most of the examples that work with IE8 will work with IE7, with some exceptions. IE7 doesnt support getAttribute/setAttribute on the common attributes, such as style, id, and class, and doesnt support hasAttribute at all. In addition, IE7 doesnt support either the CSS selectors, or the Selectors API methods, such as document.querySelectorAll (covered in ).

Where IE7 doesnt work, either I provide IE7-specific workarounds in comments in the example code you can download, or I make a note about nonsupport in the recipe or both.

Sample Code Conventions
Next page
Light

Font size:

Reset

Interval:

Bookmark:

Make

Similar books «JavaScript Cookbook»

Look at similar books to JavaScript Cookbook. We have selected literature similar in name and meaning in the hope of providing readers with more options to find new, interesting, not yet read works.


Reviews about «JavaScript Cookbook»

Discussion, reviews of the book JavaScript Cookbook and just readers' own opinions. Leave your comments, write what you think about the work, its meaning or the main characters. Specify what exactly you liked and what you didn't like, and why you think so.