Book Image

Mastering jQuery

By : Alex Libby
Book Image

Mastering jQuery

By: Alex Libby

Overview of this book

<p>Mastering jQuery has been written not only to help maximize your skills with core functionality in the library, but also to explore some of the more intriguing ways of using the library to achieve real-world solutions that could feature on any website or online environment.</p> <p>You'll start with a look at some of the more advanced ways to incorporate the library into your pages, followed by working with forms and advanced form validation using regular expressions. Next you'll move on to animating in jQuery, advanced event handling, and using jQuery effects.</p> <p>Finally, you will develop practical examples of using jQuery with external functionality such as node-webkit, before finishing with a session on optimizing your version of the library for maximum efficiency and exploring best practices for using QUnit.</p>
Table of Contents (21 chapters)
Mastering jQuery
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Introducing Node-WebKit


Node-WebKit (or NW.js, as it is now known) was originally created by Intel but open sourced in 2011 and is available at http://nwjs.io/; the project is an attempt to combine the best of SPA development with an offline environment (where hosting a web server is not practical).

Node-WebKit is based on Chromium, a WebKit-based browser that has been extended in order to allow you to control user interface elements that are normally off-limits to web developers. The security model has been relaxed (on the basis that the code we're running is trusted) and that it integrates NodeJS; this opens up an array of possibilities, outside of what would normally be possible with HTML5 APIs.

At first, it may seem like a complicated mix. However, fear not as most finished solutions built in nothing more than plain HTML, CSS, and JavaScript, with a sprinkling of images to finish it off.

The basic principle, as we will see throughout this chapter, is to produce a normal site and then compress...