Beginning jQuery

By Jack Franklin

Beginning jQuery Cover Image

Beginning jQuery is your step-by-step guide to learning the jQuery library, taking you from the basics of getting started with jQuery right through to extending jQuery by writing your own plug-ins.

Full Description

  • ISBN13: 978-1-4302-4932-0
  • 204 Pages
  • User Level: Beginner to Intermediate
  • Publication Date: February 2, 2013
  • Available eBook Formats: EPUB, MOBI, PDF
  • Print Book Price: $34.99
  • eBook Price: $24.99
Buy eBook Buy Print Book Add to Wishlist

Related Titles

Full Description

Beginning jQuery is your step-by-step guide to learning the jQuery library. jQuery is the most popular JavaScript library in the web developer’s toolkit. Jack Franklin takes you from the basics of getting you started with jQuery, right through to extending jQuery by writing your own plug-ins. You'll discover best practices you can follow, how you can avoid common mistakes, and you'll learn about so many of the things that jQuery has to offer, including how you can:
  • Use jQuery’s powerful tools to dynamically update content on your site, including DOM manipulation.
  • Extend jQuery’s capabilities by writing your own plugins on top of the framework.
  • Animate elements and build your own jQuery slider.
  • Employ best practices and avoid common errors made by beginners.

JavaScript is a powerful language but every web developer must navigate the tricky issues around cross-browser inconsistencies. Beginning jQuery teaches you how to use jQuery to avoid spending your time fixing these browser bugs - letting you concentrate on what really matters to you. Throughout Beginning jQuery, you'll discover how expressive yet concise jQuery’s code is and how much quicker and efficient you can develop with jQuery!

What you’ll learn

  • Learn why jQuery is so popular and how to get started.
  • Use jQuery’s powerful manipulation tools to dynamically update your website’s content.
  • Animate content and build your own image slider with jQuery’s animation tools.
  • Extend the library by writing your own custom plug-ins.
  • Avoid common beginner errors, and learn how to use best practices.
  • Use plug-ins created by others in the community and integrate them into your website.

Who this book is for

Beginning jQuery is for the web developer confident with HTML and CSS and now ready to get to grips with JavaScript. If you’ve tried to integrate some JavaScript into your website and wondered how you could add functionality easier, jQuery is for you. Beginning jQuery is great for the developer wanting to enhance their skillset and learn new tools.

Table of Contents

Table of Contents

  1. JavaScript You Need to Know
  2. The Basics of jQuery
  3. DOM Traversal with jQuery
  4. DOM Manipulation with jQuery
  5. An Introduction to Events
  6. Advanced Events
  7. Animation
  8. Ajax with jQuery
  9. Writing a jQuery Plug-in
  10. Advanced jQuery Plug-ins
  11. Writing a Slider Plug-in
Source Code/Downloads

Downloads are available to accompany this book.

Your operating system can likely extract zipped downloads automatically, but you may require software such as WinZip for PC, or StuffIt on a Mac.

Errata

Please Login to submit errata.

On page 160:
Chapter 11 ■ A jQuery Image Slider

Plug-in Setup

Errata: Missing "(" on the first line from the following code:

function($) {
$.fn.slider = function(options) {
var defaults = {};
var settings = $.extend({}, defaults, options);
return this.each(function() {
var $slider = $(this);
var $sliderList = $slider.children("ul");
var $sliderItems = $sliderList.children("li");
var $allButtons = $slider.find(".button");
var $buttons = {
forward: $allButtons.filter(".forward"),
back: $allButtons.filter(".back")
};
});
};
})(jQuery);


Screenshot from Console: https://dl.dropboxusercontent.com/u/19362242/Apress-Beginning-jQuery-Errata.png