E-book details

jQuery 1.4 Reference Guide. This book and eBook is a comprehensive exploration of the popular JavaScript library

jQuery 1.4 Reference Guide. This book and eBook is a comprehensive exploration of the popular JavaScript library

Jonathan Chaffer, Karl Swedberg, jQuery Foundation

Ebook
If you are looking for a comprehensive reference guide to this popular JavaScript library, this book and eBook is for you.

To make optimal use of jQuery, it's good to keep in mind the breadth of capabilities it provides. You can add dynamic, interactive elements to your sites with reduced development time using jQuery.Revised and updated for version 1.4 of jQuery, this book offers an organized menu of every jQuery method, function, and selector. Each method and function is introduced with a summary of its syntax and a list of its parameters and return value, followed by a discussion, with examples where applicable, to assist in getting the most out of jQuery and avoiding the pitfalls commonly associated with JavaScript and other client-side languages.In this book you will be provided information about the latest features of jQuery that include Sizzle Selector, Native event delegation, Event triggering, DOM manipulation, and many more. You won't be confined to built-in functionality, you'll be able to examine jQuery's plug-in architecture and we discuss both how to use plug-ins and how to write your own. If you're already familiar with JavaScript programming, this book will help you dive right into advanced jQuery concepts. You'll be able to experiment on your own, trusting the pages of this book to provide information on the intricacies of the library, where and when you need it.This book is a companion to Learning jQuery 1.3. Learning jQuery 1.3 begins with a tutorial to jQuery, where the authors share their knowledge, experience, and enthusiasm about jQuery to help you get the most from the library and to make your web applications shine.jQuery 1.4 Reference Guide digs deeper into the library, taking you through the syntax specifications and following up with detailed discussions. You'll discover the untapped possibilities that jQuery 1.4 makes available, and polish your skills as you return to this guide time and again.
  • jQuery 1.4 Reference Guide
    • Table of Contents
    • jQuery 1.4 Reference Guide
    • Credits
    • About the Authors
    • About the Reviewers
    • Preface
      • What this book covers
      • What you need for this book
      • Who this book is for
      • Conventions
      • Reader feedback
      • Customer support
        • Errata
        • Piracy
        • Questions
    • 1. Anatomy of a jQuery Script
      • A dynamic table of contents
        • Obtaining jQuery
        • Setting up the HTML document
        • Writing the jQuery code
      • Script dissection
        • Selector expressions
        • DOM traversal methods
        • DOM manipulation methods
        • Event methods
        • Effect methods
        • AJAX methods
        • Miscellaneous methods
        • Plug-in API
      • Summary
    • 2. Selector Expressions
      • CSS selectors
        • Element (T)
          • Examples
          • Description
        • ID (#myid)
          • Examples
          • Description
        • Class (.myclass)
          • Examples
          • Description
        • Descendant (E F)
          • Examples
          • Description
        • Child (E > F)
          • Examples
          • Description
        • Adjacent sibling (E + F)
          • Examples
          • Description
        • General sibling (E ~ F)
          • Examples
          • Description
        • Multiple expressions (E, F, G)
          • Examples
          • Description
        • Numbered child (:nth-child(n/even/odd/expr))
          • Examples
          • Description
        • First child (:first-child)
          • Examples
          • Description
        • Last child (:last-child)
          • Examples
          • Description
        • Only child (:only-child)
          • Examples
        • Not (:not(E))
          • Examples
        • Empty (:empty)
          • Examples
          • Description
        • Universal (*)
          • Examples
          • Description
      • Attribute selectors
        • Attribute ([foo])
          • Examples
        • Attribute equals ([foo=bar])
          • Examples
          • Description
        • Attribute does not equal ([foo!=bar])
          • Examples
          • Description
        • Attribute begins with ([foo^=bar])
          • Examples
          • Description
        • Attribute ends with ([foo$=bar])
          • Examples
        • Attribute contains ([foo*=bar])
          • Examples
          • Description
        • Attribute contains word ([foo~=bar])
          • Examples
          • Description
        • Attribute contains prefix ([foo|=bar])
          • Examples
          • Description
      • Form selectors
      • Custom selectors
        • Element at index (:eq(n))
          • Examples
          • Description
        • Greater than (:gt(n))
          • Examples
          • Description
        • Less than (:lt(n))
          • Examples
          • Description
        • First (:first)
          • Examples
          • Description
        • Last (:last)
          • Examples
          • Description
        • Even element (:even)
          • Examples
          • Description
        • Odd element (:odd)
          • Examples
          • Description
        • Is parent (:parent)
          • Examples
          • Description
        • Contains text (:contains(text))
          • Examples
          • Description
        • Contains element (:has(E))
          • Examples
          • Description
        • Visible (:visible)
          • Examples
          • Description
        • Hidden (:hidden)
          • Examples
          • Description
        • Header element (:header)
          • Examples
        • Currently animating (:animated)
          • Examples
    • 3. DOM Traversal Methods
      • The jQuery function
        • $()
          • Parameters (first version)
          • Parameters (second version)
          • Parameters (third version)
          • Parameters (fourth version)
          • Parameters (fifth version)
          • Return value
          • Description
            • Selector context
            • Using DOM elements
            • Cloning jQuery objects
            • Creating new elements
      • Filtering methods
        • .filter()
          • Parameters (first version)
          • Parameters (second version)
          • Return value
          • Description
            • Using a filter function
        • .not()
          • Parameters (first version)
          • Parameters (second version)
          • Parameters (third version)
          • Return value
          • Description
            • Removing specific elements
        • .has()
          • Parameters
          • Return value
          • Description
        • .eq()
          • Parameters
          • Return value
          • Description
        • .first()
          • Parameters
          • Return value
          • Description
        • .last()
          • Parameters
          • Return value
          • Description
        • .slice()
          • Parameters
          • Return value
          • Description
            • Negative indices
      • Tree traversal methods
        • .find()
          • Parameters
          • Return value
          • Description
        • .children()
          • Parameters
          • Return value
          • Description
        • .parents()
          • Parameters
          • Return value
          • Description
        • .parentsUntil()
          • Parameters
          • Return value
          • Description
        • .parent()
          • Parameters
          • Return value
          • Description
        • .closest()
          • Parameters
          • Return value
          • Description
        • .offsetParent()
          • Parameters
          • Return value
          • Description
        • .siblings()
          • Parameters
          • Return value
          • Description
        • .prev()
          • Parameters
          • Return value
          • Description
        • .prevAll()
          • Parameters
          • Return value
          • Description
        • .prevUntil()
          • Parameters
          • Return value
          • Description
        • .next()
          • Parameters
          • Return value
          • Description
        • .nextAll()
          • Parameters
          • Return value
          • Description
        • .nextUntil()
          • Parameters
          • Return value
          • Description
      • Miscellaneous traversal methods
        • .add()
          • Parameters (first version)
          • Parameters (second version)
          • Parameters (third version)
          • Return value
          • Description
        • .is()
          • Parameters
          • Return value
          • Description
        • .end()
          • Parameters
          • Return value
          • Description
        • .andSelf()
          • Parameters
          • Return value
          • Description
        • .map()
          • Parameters
          • Return value
          • Description
        • .contents()
          • Parameters
          • Return value
          • Description
    • 4. DOM Manipulation Methods
      • General attributes
        • .attr() (getter)
          • Parameters
          • Return value
          • Description
        • .attr() (setter)
          • Parameters (first version)
          • Parameters (second version)
          • Parameters (third version)
          • Return value
          • Description
            • Setting a simple attribute
            • Setting several attributes at once
            • Computed attribute values
        • .removeAttr()
          • Parameters (first version)
          • Parameters (second version)
          • Return value
          • Description
      • Style properties
        • .css() (getter)
          • Parameters
          • Return value
          • Description
        • .css() (setter)
          • Parameters (first version)
          • Parameters (second version)
          • Parameters (third version)
          • Return value
          • Description
        • .height() (getter)
          • Parameters
          • Return value
          • Description
        • .height() (setter)
          • Parameters
          • Return value
          • Description
        • .innerHeight()
          • Parameters
          • Return value
          • Description
        • .outerHeight()
          • Parameters
          • Return value
          • Description
        • .width() (getter)
          • Parameters
          • Return value
          • Description
        • .width() (setter)
          • Parameters
          • Return value
          • Description
        • .innerWidth()
          • Parameters
          • Return value
          • Description
        • .outerWidth()
          • Parameters
          • Return value
          • Description
        • .offset() (getter)
          • Parameters
          • Return value
          • Description
        • .offset() (setter)
          • Parameters
          • Return value
          • Description
        • .position()
          • Parameters
          • Return value
          • Description
        • .scrollTop() (getter)
          • Parameters
          • Return value
          • Description
        • .scrollTop() (setter)
          • Parameters
          • Return value
        • .scrollLeft() (getter)
          • Parameters
          • Return value
          • Description
        • .scrollLeft() (setter)
          • Parameters
          • Return value
      • Class attributes
        • .hasClass()
          • Parameters
          • Return value
          • Description
        • .addClass()
          • Parameters (first version)
          • Parameters (second version)
          • Return value
          • Description
        • .removeClass()
          • Parameters (first version)
          • Parameters (second version)
          • Return value
          • Description
        • .toggleClass()
          • Parameters (first version)
          • Parameters (second version)
          • Parameters (third version)
          • Return value
          • Description
      • DOM replacement
        • .html() (getter)
          • Parameters
          • Return value
          • Description
        • .html() (setter)
          • Parameters (first version)
          • Parameters (second version)
          • Return value
          • Description
        • .text() (getter)
          • Parameters
          • Return value
          • Description
        • .text() (setter)
          • Parameters (first version)
          • Parameters (second version)
          • Return value
          • Description
        • .val() (getter)
          • Parameters
          • Return value
          • Description
        • .val() (setter)
          • Parameters (first version)
          • Parameters (second version)
          • Return value
          • Description
        • .replaceWith()
          • Parameters
          • Return value
          • Description
        • .replaceAll()
          • Parameters
          • Return value
          • Description
      • DOM insertion, inside
        • .prepend()
          • Parameters (first version)
          • Parameters (second version)
          • Return value
          • Description
        • .prependTo()
          • Parameters
          • Return value
          • Description
        • .append()
          • Parameters (first version)
          • Parameters (second version)
          • Return value
          • Description
        • .appendTo()
          • Parameters
          • Return value
          • Description
      • DOM insertion, outside
        • .before()
          • Parameters (first version)
          • Parameters (second version)
          • Return value
          • Description
        • .insertBefore()
          • Parameters
          • Return value
          • Description
        • .after()
          • Parameters (first version)
          • Parameters (second version)
          • Return value
          • Description
        • .insertAfter()
          • Parameters
          • Return value
          • Description
      • DOM insertion, around
        • .wrap()
          • Parameters (first version)
          • Parameters (second version)
          • Return value
          • Description
        • .wrapAll()
          • Parameters
          • Return value
          • Description
        • .wrapInner()
          • Parameters (first version)
          • Parameters (second version)
          • Return value
          • Description
      • DOM copying
        • .clone()
          • Parameters
          • Return value
          • Description
      • DOM removal
        • .empty()
          • Parameters
          • Return value
          • Description
        • .remove()
          • Parameters
          • Return value
          • Description
        • .detach()
          • Parameters
          • Return value
          • Description
        • .unwrap()
          • Parameters
          • Return value
          • Description
    • 5. Event Methods
      • Event handler attachment
        • .bind()
          • Parameters
          • Return value
          • Description
            • Event handlers
            • The event object
            • Passing event data
        • .unbind()
          • Parameters (first version)
          • Parameters (second version)
          • Return value
          • Description
            • Using namespaces
            • Using the event object
        • .one()
          • Parameters
          • Return value
          • Description
        • .trigger()
          • Parameters
          • Return value
          • Description
        • .triggerHandler()
          • Parameters
          • Return value
          • Description
        • .live()
          • Parameters
          • Return value
          • Description
            • Event delegation
            • Caveats
        • .die()
          • Parameters
          • Return value
          • Description
      • Document loading
        • .ready()
          • Parameters
          • Return value
          • Description
            • Aliasing the jQuery namespace
        • .load()
          • Parameters
          • Return value
          • Description
        • .unload()
          • Parameters
          • Return value
          • Description
        • .error()
          • Parameters
          • Return value
          • Description
      • Mouse events
        • .mousedown()
          • Parameters (first version)
          • Return value
          • Description
        • .mouseup()
          • Parameters (first version)
          • Return value
          • Description
        • .click()
          • Parameters (first version)
          • Return value
          • Description
        • .dblclick()
          • Parameters (first version)
          • Return value
          • Description
        • .toggle()
          • Parameters
          • Return value
          • Description
        • .mouseover()
          • Parameters (first version)
          • Return value
          • Description
        • .mouseout()
          • Parameters (first version)
          • Return value
          • Description
        • .mouseenter()
          • Parameters (first version)
          • Return value
          • Description
        • .mouseleave()
          • Parameters (first version)
          • Return value
          • Description
        • .hover()
          • Parameters
          • Return value
          • Description
        • .mousemove()
          • Parameters (first version)
          • Return value
          • Description
      • Form events
        • .focus()
          • Parameters (first version)
          • Return value
          • Description
        • .blur()
          • Parameters (first version)
          • Return value
          • Description
        • .change()
          • Parameters (first version)
          • Return value
          • Description
        • .select()
          • Parameters (first version)
          • Return value
          • Description
        • .submit()
          • Parameters (first version)
          • Return value
          • Description
      • Keyboard events
        • .keydown()
          • Parameters (first version)
          • Return value
          • Description
        • .keypress()
          • Parameters (first version)
          • Return value
          • Description
        • .keyup()
          • Parameters (first version)
          • Return value
          • Description
      • Browser events
        • .resize()
          • Parameters (first version)
          • Return value
          • Description
        • .scroll()
          • Parameters (first version)
          • Return value
          • Description
    • 6. Effect Methods
      • Pre-packaged effects
        • .show()
          • Parameters
          • Return value
          • Description
        • .hide()
          • Parameters
          • Return value
          • Description
        • .toggle()
          • Parameters (first version)
          • Parameters (second version)
          • Return value
          • Description
        • .slideDown()
          • Parameters
          • Return value
          • Description
        • .slideUp()
          • Parameters
          • Return value
          • Description
        • .slideToggle()
          • Parameters
          • Return value
          • Description
        • .fadeIn()
          • Parameters
          • Return value
          • Description
        • .fadeOut()
          • Parameters
          • Return value
          • Description
        • .fadeTo()
          • Parameters
          • Return value
          • Description
      • Customized effects
        • .animate()
          • Parameters (first version)
          • Parameters (second version)
          • Return value
          • Description
        • .stop()
          • Parameters
          • Return value
          • Description
        • .delay()
          • Parameters
          • Return value
          • Description
        • .queue()
          • Parameters (first version)
          • Parameters (second version)
          • Parameters (third version)
          • Return value (first version)
          • Return value (second and third versions)
          • Description
        • .dequeue()
          • Parameters
          • Return value
          • Description
        • .clearQueue()
          • Parameter
          • Return value
          • Description
    • 7. AJAX Methods
      • Low-level interface
        • $.ajax()
          • Parameters
          • Return value
          • Description
            • Callback functions
            • Data types
            • Sending data to the server
            • Advanced options
        • $.ajaxSetup()
          • Parameters
          • Return value
          • Description
      • Shorthand methods
        • $.get()
          • Parameters
          • Return value
          • Description
        • .load()
          • Parameters
          • Return value
          • Description
            • Loading page fragments
        • $.post()
          • Parameters
          • Return value
          • Description
        • $.getJSON()
          • Parameters
          • Return value
          • Description
        • $.getScript()
          • Parameters
          • Return value
          • Description
      • Global AJAX event handlers
        • .ajaxComplete()
          • Parameters
          • Return value
          • Description
        • .ajaxError()
          • Parameters
          • Return value
          • Description
        • .ajaxSend()
          • Parameters
          • Return value
          • Description
        • .ajaxStart()
          • Parameters
          • Return value
          • Description
        • .ajaxStop()
          • Parameters
          • Return value
          • Description
        • .ajaxSuccess()
          • Parameters
          • Return value
          • Description
      • Helper functions
        • .serialize()
          • Parameters
          • Return value
          • Description
        • .serializeArray()
          • Parameters
          • Return value
          • Description
    • 8. Miscellaneous Methods
      • Setup methods
        • $.noConflict()
          • Parameters
          • Return value
          • Description
      • DOM element methods
        • .size()
          • Return value
          • Description
        • .get()
          • Parameters
          • Return value
          • Description
        • .index()
          • Parameters (first version)
          • Return value (first version)
          • Parameters (second version)
          • Return value (second version)
          • Parameters (third version)
          • Return value (third version)
          • Description
      • Collection manipulation
        • .each()
          • Parameters (first version)
          • Return value (first version)
          • Parameters (second version)
          • Return value (second version)
          • Description
        • $.grep()
          • Parameters
          • Return value
          • Description
        • $.makeArray()
          • Parameters
          • Return value
          • Description
        • $.inArray()
          • Parameters
          • Return value
          • Description
        • $.map()
          • Parameters
          • Return value
          • Description
        • $.merge()
          • Parameters
          • Return value
          • Description
        • $.unique()
          • Parameters
          • Return value
          • Description
        • $.extend()
          • Parameters
          • Return value
          • Description
        • $.trim()
          • Parameters
          • Return value
          • Description
        • $.param()
          • Parameters
          • Return value
          • Description
      • Introspection
        • $.isArray()
          • Parameters
          • Return value
        • $.isFunction()
          • Parameters
          • Return value
        • $.isPlainObject()
          • Parameters
          • Return value
        • $.isEmptyObject()
          • Parameters
          • Return value
        • $.isXMLDoc()
          • Parameters
          • Return value
      • Data storage
        • .data()
          • Parameters (first version)
          • Return value (first version)
          • Parameters (second version)
          • Return value (second version)
          • Parameters (third version)
          • Return value (third version)
          • Description
        • .removeData()
          • Parameters
          • Return value
          • Description
    • 9. jQuery Properties
      • Global properties
        • $.browser
        • $.support
          • $.support.boxModel
          • $.support.cssFloat
          • $.support.hrefNormalized
          • $.support.htmlSerialize
          • $.support.leadingWhitespace
          • $.support.noCloneEvent
          • $.support.objectAll
          • $.support.opacity
          • $.support.scriptEval
          • $.support.style
          • $.support.tbody
      • jQuery object properties
        • .length
        • .selector
        • .context
    • 10. The Plug-in API
      • Using a plug-in
      • Developing a plug-in
        • Object method
          • Components
          • Description
        • Global function
          • Components (first and second versions)
          • Components (third version)
          • Description
            • Plug-ins with a single function
            • Plug-ins with multiple functions
          • Example: A simple print function
        • Selector expression
          • Components
          • Description
      • Plug-in conventions
        • Use of the $ alias
        • Naming conventions
        • API standardization
    • 11. Alphabetical Quick Reference
      • Selector expressions
      • Methods
      • Properties
    • A. Online Resources
      • jQuery documentation
        • Official jQuery documentation
        • jQuery API browser
        • Adobe AIR jQuery API Viewer
      • JavaScript reference
        • Mozilla Developer Center
        • Client-Side JavaScript Reference
        • MSDN Reference
        • Dev.Opera
        • Quirksmode
        • JavaScript Toolbox
        • comp.lang.javascript FAQ
      • JavaScript code compressors
        • JSMin
        • YUI Compressor
        • Google Closure Compiler
        • Packer
      • JavaScript code decompressors
        • Pretty Printer
        • JavaScript beautifier
      • (X)HTML reference
        • W3C Hypertext Markup Language Home Page
      • CSS reference
        • W3C Cascading Style Sheets Home Page
        • Mezzoblue CSS Crib Sheet
        • Position Is Everything
      • Useful blogs
        • The jQuery blog
        • Learning jQuery
        • jQuery for Designers
        • Ajaxian
        • John Resig
        • JavaScript Ant
        • Roberts talk
        • Snook
        • Paul Irish
        • NCZOnline
        • I Can't
        • DOM scripting
        • Steve Souders
        • As days pass by
        • A List Apart
      • Web development frameworks using jQuery
    • B. Development Tools
      • Tools for Firefox
        • Firebug
        • Web Developer toolbar
        • Venkman
        • Regular Expressions Tester
      • Tools for Internet Explorer
        • Microsoft Internet Explorer Developer Toolbar
        • Microsoft Internet Explorer 8 Developer Tools
        • Microsoft Visual Web Developer Express
        • dynaTrace AJAX Edition
        • DebugBar
        • Drip
      • Tools for Safari
        • Develop menu
      • Tools for Opera
        • Dragonfly
      • Other tools
        • Firebug Lite
        • NitobiBug
        • TextMate jQuery Bundle
        • jQuerify Bookmarklet
        • Charles
        • Fiddler
        • Sloppy
        • JS Bin
        • Bespin
        • Aptana
    • Index
  • Title: jQuery 1.4 Reference Guide. This book and eBook is a comprehensive exploration of the popular JavaScript library
  • Author: Jonathan Chaffer, Karl Swedberg, jQuery Foundation
  • Original title: jQuery 1.4 Reference Guide. This book and eBook is a comprehensive exploration of the popular JavaScript library
  • ISBN: 9781849510059, 9781849510059
  • Date of issue: 2010-01-27
  • Format: Ebook
  • Item ID: e_3ctd
  • Publisher: Packt Publishing