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

Preparing our development environment


Over the next few pages, we're going to build a simple application that displays the file sizes of any files dropped into the main window or selected via a file dialog. In reality, we wouldn't use the application on its own, but as a basis for uploading images for processing or perhaps as the offline version of a compression application. There are plenty of ways in which we can develop it further—we will touch on some ideas later in the chapter, in the Taking things further section.

In the meantime, let's get started with installing NW.js. Before doing this, we need to avail ourselves of the following tools:

  • A compression program is needed; on the Windows platform, you can use the in-built capabilities or something such as 7-Zip (http://www.7-zip.org), if preferred.

  • We will need a text editor; throughout the course of this chapter, we will use Sublime 2 or 3, but any good text editor should suffice if you already have a personal preference. Sublime Text...