Preface

jQuery is a powerful, yet easy-to-use JavaScript library that helps web developers and designers add dynamic, interactive elements to their sites, smoothing out browser inconsistencies and greatly reducing development time. In jQuery Reference Guide, you can investigate this library's features in a thorough, accessible format.

This book offers an organized menu of every jQuery method, function, and selector. Entries are accompanied by detailed descriptions and helpful recipes that will assist you in getting the most out of jQuery and avoiding the pitfalls commonly associated with JavaScript and other client-side languages. If you're still hungry for more, the book shows you how to cook up your own extensions with jQuery's elegant plug-in architecture.

You'll discover the untapped possibilities that jQuery makes available and hone your skills as you return to this guide time and again.

Demos of examples in this book are available at: http:\book.learningjquery.com.

What This Book Covers

In Chapter 1 we'll begin by dissecting a working jQuery example. This script will serve as a roadmap for this book, directing you to the chapters containing more information on particular jQuery capabilities.

The heart of the book is a set of reference chapters that allow you to quickly look up the details of any jQuery method. Chapter 2 lists every available selector for finding page elements.

Chapter 3 builds on the previous chapter with a catalog of jQuery methods for finding page elements.

Chapter 4 describes every opportunity for inspecting and modifying the HTML structure of a page.

Chapter 5 details each event that can be triggered and reacted to by jQuery.

Chapter 6 defines the range of animations built into jQuery, as well as the toolkit available for building your own.

Chapter 7 lists the ways in which jQuery can initiate and respond to server communication without refreshing the page.

Chapter 8 covers the remaining capabilities of the jQuery library that don't neatly fit into the other categories.

In the final three chapters, you'll dive into the extension mechanisms jQuery makes available. Chapter 9 reveals four major ways to enhance jQuery's already robust capabilities using a plug-in.

Chapter 10 walks you through the advanced measurement tools available in the popular Dimensions plug-in.

Chapter 11 empowers you to bring AJAX technology and HTML forms together, a process which is made easy by the Form plug-in.

Appendix A provides a handful of informative websites on a wide range of topics related to jQuery, JavaScript, and web development in general.

Appendix B recommends a number of useful third-party programs and utilities for editing and debugging jQuery code within your personal development environment.

Who is This Book For?

This book is for web designers who want to create interactive elements for their designs, and for developers who want to create the best user interface for their web applications.

The reader will need the basics of HTML and CSS, and should be comfortable with the syntax of JavaScript. No knowledge of jQuery is assumed, nor is experience with any other JavaScript libraries required.

Conventions

In this book, you will find a number of styles of text that distinguish between different kinds of information. Here are some examples of these styles, and an explanation of their meaning.

There are three styles for code. Code words in text are shown as follows: "Taken together, $() and .addClass() are enough for us to accomplish our goal of changing the appearance of the poem text."

A block of code will be set as follows:

$(document).ready(function() {
$('span:contains(language)').addClass('emphasized'),
});

When we wish to draw your attention to a particular part of a code block, the relevant lines or items will be made bold:

$(document).ready(function() {
$('a[@href$=".pdf"]').addClass('pdflink'),
});

New terms and important words are introduced in a bold-type font. Words that you see on the screen, in menus or dialog boxes for example, appear in our text like this: "The next step is to run those tests by clicking the All button".

Note

Important notes appear in a box like this.

Note

Tips and tricks appear like this.

Reader Feedback

Feedback from our readers is always welcome. Let us know what you think about this book, what you liked or may have disliked. Reader feedback is important for us to develop titles that you really get the most out of.

To send us general feedback, simply drop an email to , making sure to mention the book title in the subject of your message.

If there is a book that you need and would like to see us publish, please send us a note in the SUGGEST A TITLE form on www.packtpub.com or email .

If there is a topic that you have expertise in and you are interested in either writing or contributing to a book, see our author guide on www.packtpub.com/authors.

Customer Support

Now that you are the proud owner of a Packt book, we have a number of things to help you to get the most from your purchase.

Downloading the Example Code for the Book

Visit http://www.packtpub.com/support, and select this book from the list of titles to download any example code or extra resources for this book. The files available for download will then be displayed.

The downloadable files contain instructions on how to use them.

Errata

Although we have taken every care to ensure the accuracy of our contents, mistakes do happen. If you find a mistake in one of our books—maybe a mistake in text or code—we would be grateful if you would report this to us. By doing this you can save other readers from frustration, and help to improve subsequent versions of this book. If you find any errata, report them by visiting http://www.packtpub.com/support, selecting your book, clicking on the Submit Errata link, and entering the details of your errata. Once your errata are verified, your submission will be accepted and the errata added to the list of existing errata. The existing errata can be viewed by selecting your title from http://www.packtpub.com/support.

Questions

You can contact us at if you are having a problem with some aspect of the book, and we will do our best to address it.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.149.251.154