• Complain

Alex MacCaw - JavaScript Web Applications (Otx)

Here you can read online Alex MacCaw - JavaScript Web Applications (Otx) full text of the book (entire story) in english for free. Download pdf and epub, get meaning, cover and reviews about this ebook. year: 2011, publisher: OReilly Media, genre: Computer. 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 Web Applications (Otx)
  • Author:
  • Publisher:
    OReilly Media
  • Genre:
  • Year:
    2011
  • Rating:
    4 / 5
  • Favourites:
    Add to favourites
  • Your mark:
    • 80
    • 1
    • 2
    • 3
    • 4
    • 5

JavaScript Web Applications (Otx): summary, description and annotation

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

Building rich JavaScript applications that bring a desktop experience to the Web requires moving state from the server to the client sidenot a simple task. This hands-on book takes proficient JavaScript developers through all the steps necessary to create state-of-the-art applications, including structure, templating, frameworks, communicating with the server, and many other issues. Throughout the book, youll work with real-world example applications to help you grasp the concepts involved. Learn how to create JavaScript applications that offer a more responsive and improved experience.Use the Model-View-Controller (MVC) pattern, and learn how to manage dependencies inside your application Get an introduction to templating and data binding Learn about loading remote data, Ajax, and cross-domain requests Create realtime applications with WebSockets and Node.js Accept dropped files and upload data with progress indicators Use major frameworks and libraries, including jQuery, Spine, and Backbone Write tests and use the console to debug your applications Get deployment best practices, such as caching and minification

Alex MacCaw: author's other books


Who wrote JavaScript Web Applications (Otx)? Find out the surname, the name of the author of the book and a list of all author's works by series.

JavaScript Web Applications (Otx) — 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 Web Applications (Otx)" 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 Web Applications
Alex MacCaw
Editor
Mary Treseler

Copyright 2011 Alex MacCaw

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 Web Applications , the image of a Long-eared owl, 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 Preface JavaScript has come a long way from its humble - photo 1

O'Reilly Media

Preface

JavaScript has come a long way from its humble beginnings in 1995 as part of the Netscape browser, to the high-performance JIT interpreters of today. Even just five years ago developers were blown away by Ajax and the yellow fade technique; now, complex JavaScript apps run into the hundreds of thousands of lines.

In the last year, a new breed of JavaScript applications has appeared, giving an experience people were used to on the desktop, but that was unheard of on the Web. Gone are the slow page requests every time a user interacts with an application; instead, JavaScript engines are now so powerful we can keep state client side, giving a much more responsive and improved experience.

Its not just JavaScript engines that have improved; CSS3 and HTML5 specs havent finished the drafting stage, but they are already widely supported by modern browsers such as Safari, Chrome, Firefox, andto some extentIE9. Beautiful interfaces can be coded in a fraction of the time previously required, and without all that notorious image cutting and splicing. Support for HTML5 and CSS3 is getting better every day, but youll need to decidebased on your client basewhether to use these technologies .

Moving state to the client side is no simple task. It requires a completely different development approach to server-side applications. You need to think about structure, templating, communicating with the server, frameworks, and much more. Thats where this book comes in; Ill take you through all the steps necessary to create state-of-the-art JavaScript applications.

Who Is This Book For?

This book isnt for JavaScript newbies, so if youre unfamiliar with the basics of the language, I advise you to pick up one of the many good books on the subject, such as JavaScript: The Good Parts by Douglas Crockford (OReilly). This book is aimed at developers with some JavaScript experience, perhaps using a library like jQuery, who want to get into building more advanced JavaScript applications. Additionally, many sections of the bookespecially the appendixeswill also be a useful reference for experienced JavaScript developers.

How This Book Is Organized

The chapter starts with a discussion of JavaScripts history and covers some of the underlying influences of its current implementation and community. We then give you an introduction to the MVC architectural pattern, in addition to exploring JavaScripts constructor functions, prototypal inheritance, and how to create your own class library.

This chapter gives you a brief primer on browser events, including their history, API, and behavior. Well cover how to bind to events with jQuery, use delegation, and create custom events. Well also explore using non-DOM events with the PubSub pattern.

This chapter explains how to use MVC models in your application, as well as for loading and manipulating remote data. Well explain why MVC and namespacing are important and then build our own ORM library to manage model data. Next, well cover how to load in remote data using JSONP and cross-domain Ajax. Finally, youll learn how to persist model data using HTML5 Local Storage and submitting it to a RESTful server.

This chapter demonstrates how to use a controller pattern to persist state on the client side. Well discuss how to use modules to encapsulate logic and prevent global namespace pollution, then well cover how to cleanly interface controllers with views, listening to events and manipulating the DOM. Finally, well discuss routing, first using the URLs hash fragment, and then using the newer HTML5 History API, making sure to explain the pros and cons of both approaches.

This is where we cover views and JavaScript templating. We cover the different ways of dynamically rendering views, as well as various templating libraries and where to actually store the templates (inline in the page, in script tags, or with remote loading). Then, youll learn about data bindingconnecting your model controllers and views to dynamically synchronize model data and view data.

In this chapter, well get into the details of JavaScript dependency management using CommonJS modules. Youll learn the history and thinking behind the CommonJS movement, how to create CommonJS modules in the browser, and various module loader libraries to help you with this, such as Yabble and RequireJS. Next, well discuss how to automatically wrap up modules server side, increasing performance and saving time. Finally, well cover various alternatives to CommonJS, such as Sprockets and LABjs.

Here, well get into some of the benefits HTML5 gives us: the File API. Well cover browser support, multiple uploads, receiving files that are dragged onto the browser, and files from clipboard events. Next, well explore reading files using blobs and slices, and displaying the result in the browser. Well cover uploading files in the background using the new XMLHttpRequest Level 2 specification, and finally, well show you how to give your users live upload progress bars and how to integrate uploads with jQuerys Ajax API.

Well take a look at some of the exciting developments with real-time applications and WebSockets. First, the chapter covers real times rather turbulent history and its current support in the browsers. Then, well get into the details of WebSockets and their high-level implementation, browser support, and JavaScript API. Next, well demonstrate a simple RPC server that uses WebSockets to connect up servers and clients. Well then take a look at Socket.IO and learn how real time fits into applications architecture and user experience.

This chapter covers testing and debugging, a crucial part of JavaScript web application development. Well look at the issues surrounding cross-browser testing, which browsers you should test in, and unit tests and testing libraries, such as QUnit and Jasmine. Next, well take a look at automated testing and continuous integration servers, such as Selenium. Well then get into the debugging side of things, exploring Firefox and WebKits Web Inspectors, the console, and using the JavaScript debugger.

This chapter covers another importantbut often neglectedpart of JavaScript web applications: deployment. Chiefly, well consider performance and how to use caching, minification, gzip compression, and other techniques to decrease your applications initial load time. Finally, well briefly cover how to use CDNs to serve static content on your behalf, and how to use the browsers built-in auditor, which can be immensely helpful in improving your sites performance.

Next page
Light

Font size:

Reset

Interval:

Bookmark:

Make

Similar books «JavaScript Web Applications (Otx)»

Look at similar books to JavaScript Web Applications (Otx). 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 Web Applications (Otx)»

Discussion, reviews of the book JavaScript Web Applications (Otx) 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.