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

Installing and building our first application


I wonder: how many times have you read books or online articles about a programming language, which provide their own take on the ubiquitous "Hello World" example? I'll bet it must be quite a few times over the years…and yes, before you ask, we're not going to break the tradition either! Following in the footsteps of anyone who has provided "Hello World" examples, here's our own take.

To build this, we need to do the following:

  1. Browse to http://nwjs.io/ and download the package for your platform; we will assume the use of Windows for now, but packages are available for Mac and Linux platforms as well.

  2. Extract the node-webkit-vX.XX.XX-win-x64 folder (where XX is the version number), rename it as nodewebkit, and copy it to your main PC drive—Linux or Mac users can copy this folder to their user areas. Once done, create a new folder called development within the nodewebkit folder.

  3. Next up, we need to install NodeJS. To do this, head over to http://nodejs...