Index
A
- $.ajax() / The low-level Ajax method
- $.ajax() call / Ajax promises, Defining alternate transports
- $.ajax() function / Adding new global functions, Handling Ajax errors
- $.ajax() option / Harvesting JSONP data
- $.ajax([url], options) method / Issuing requests
- $.ajaxPrefilter() function / Adding Ajax prefilters
- $.ajaxSetup() function / Modifying default options
- $.attrHooks hook / DOM manipulation hooks
- $.average() / Adding multiple functions
- -animated selector / Determining the animation state, Miscellaneous selectors
- .abort() method / Defining alternate transports
- .add(selector) method / Collection manipulation
- .addBack() / The DOM element stack
- .addBack() method / Collection manipulation
- .addClass() / Consolidating code using the event context
- .addClass() method / Injecting the new class, Modifying CSS with inline properties, Setting computed style-property values, Manipulating attributes and properties
- .addClass(class) method / Attributes and properties
- .after(content) method / Insertion
- .ajaxComplete(handler) method / Request monitoring
- .ajaxError(handler) method / Request monitoring
- .ajaxSend(handler) method / Request monitoring
- .ajaxStart() method / Keeping an eye on the request
- .ajaxStart(handler) method / Request monitoring
- .ajaxStop() method / Keeping an eye on the request
- .ajaxStop(handler) method / Request monitoring
- .ajaxSuccess(handler) method / Request monitoring
- .always() callback function / Asynchronous testing
- .always() handler / Caching responses
- .always(callback) method / Methods of promise objects
- .animate() method / Creating custom animations, Defining effect durations, Taking fine-grained control of animations
- .animate(properties, options) method / Custom animations
- .animate(properties, [speed], [easing], [callback]) method / Custom animations
- .append(content) method / Insertion
- .appendTo() method / Inserting new elements
- .appendTo(selector) method / Insertion
- .attr() function / Using shorthand element-creation syntax
- .attr() method / Non-class attributes, Value callbacks, DOM tree manipulation, DOM manipulation hooks
- .attr(key) method / Attributes and properties
- .attr(key, fn) method / Attributes and properties
- .attr(key, value) method / Attributes and properties
- .attr(obj) method / Attributes and properties
- a + b selector / Simple CSS
- a, b selector / Simple CSS
- a.html / Appending HTML
- a > b selector / Simple CSS
- a b selector / Simple CSS
- accepts property / Data type converters
- add / Extending events
- advanced easing function / Advanced easing
- Ajax
- about / What jQuery does, Ajax promises
- and events / Ajax and events
- used, for sorting sorting / Sorting tables using Ajax
- progressive enhancement, implementing / Implementing progressive enhancement with Ajax, Harvesting JSONP data
- errors, handling / Handling Ajax errors
- data type converters / Data type converters
- prefilters, adding / Adding Ajax prefilters
- alternate transports, defining / Defining alternate transports
- Ajax methods
- requests, issuing / Issuing requests
- requests, monitoring / Request monitoring
- configuring / Configuration
- utilities / Utilities
- Ajax requests
- different context, delivering / Delivering different content for Ajax requests
- throttling / Throttling Ajax requests
- alt attribute / Attribute selectors
- always() method / Using deferred objects
- ancestors
- about / Ancestors
- animations
- custom animations, creating / Creating custom animations
- effects, building by hand / Building effects by hand
- multiple properties, animating at once / Animating multiple properties at once
- CSS, positioning with / Positioning with CSS
- about / Animation revisited
- observing / Observing and interrupting animations, Determining the animation state
- state, determining / Determining the animation state
- running animation, halting / Halting a running animation
- halting animations, caution / Caution when halting animations
- fine-grained control, taking / Taking fine-grained control of animations
- anonymous function expression / Rebinding events
- Application Programming Interface (API) / What jQuery does
- arr.sort() method / Sorting simple JavaScript arrays
- array-handling functions / Adding new global functions
- array notation / Storing non-string data
- arrays and objects / Arrays and objects
- asterisk (*) / Styling links
- Asynchronous HTTP and HTML (AHAH) / Appending HTML
- Asynchronous testing / Asynchronous testing
- asyncTest() / Asynchronous testing
- attribute
- shorthand element creation syntax, usin / Using shorthand element-creation syntax
- attributes
- non-class attributes / Non-class attributes
- about / Attributes
- attribute selectors
- about / Attribute selectors
- links, styling / Styling links
- a ~ b selector / Simple CSS
B
- *button selector / Form selectors
- -button selector / Forms
- .before() method / Using inverted insertion methods
- .before(content) method / Insertion
- .bind(type, [data], handler) method / Binding
- .blur() method / Shorthand triggering
- .blur(handler) method / Shorthand binding
- <body> element / Understanding the DOM
- back to top link / Creating new elements
- beginning (^) / Styling links
- behavior queuing / Making use of the event handler context
- binding / Binding
- binding handlers
- in loops / Binding handlers in loops
- bodyClass variable / Consolidating code using the event context
- bubble sort / Storing data alongside DOM elements
- bubbles up / The journey of an event
- buildItem() function / Harvesting JSONP data
- buildRow() function / Sorting and building rows with JSON, Modifying the JSON object
- buildRows() function / Sorting and building rows with JSON
- built-in event
- delegation capabilities, using / Using built-in event-delegation capabilities
C
- $.contains(a, b) method / Working with selected elements
- $.cookie() function / Global function plugins
- $.cssHooks hook / DOM manipulation hooks
- $cells variable / Writing a DOM traversal method plugin
- *checked selector / Form selectors
- *contains() custom selector / Dynamic table filtering
- *containsExactly() selector / Exercises
- -checkbox selector / Forms
- -checked selector / Forms
- -contains(text) selector / Miscellaneous selectors
- .change() method / Shorthand triggering
- .change(handler) method / Shorthand binding
- .children([selector]) method / Descendants
- .class selector / Simple CSS
- .clearQueue([queueName]) method / Queue manipulation
- .click() handler / Setting computed style-property values, Defining custom events
- .click() method / Shorthand triggering
- .click(handler) method / Shorthand binding
- .clone([withHandlers], [deepWithHandlers]) method / Copying
- .closest() method / Writing a DOM traversal method plugin, Exercises, Event delegation
- .closest(selector) method / Ancestors
- .collapse suffix / Giving namespaces to event handlers
- .complete properties / Defining alternate transports
- .contents() method / Descendants
- .css() method / Modifying CSS with inline properties, Setting computed style-property values, Non-class attributes, DOM manipulation hooks
- .css(key) method / CSS
- .css(key, value) method / CSS
- .css(obj) method / CSS
- caching
- used, for improving DOM traversal performance / Improving performance with caching
- callback() function / Defining alternate transports
- callback function / Callback functions
- chaining / Chaining
- used, for improving DOM traversal performance / Improving performance using chaining
- checkScrollPosition() function / Infinite scrolling, Throttling events
- Chrome Developer Tools
- URL / Using development tools, Chrome Developer Tools
- about / Chrome Developer Tools
- Elements tab / Chrome Developer Tools
- Sources tab / Chrome Developer Tools
- Console tab / Chrome Developer Tools
- console.log() function / Chrome Developer Tools
- JavaScript alert() function / Chrome Developer Tools
- class animations / Class animations
- class selector / Using the $() function
- click handler / Rebuilding content on demand, Assigning event handlers, Giving names to functions, Managing loops between the DOM and JavaScript
- closures / Handling interactions between closures
- creating, in jQuery / Creating closures in jQuery
- $(document).ready(), arguments passing to / Passing arguments to $(document).ready()
- event handlers, assigning / Assigning event handlers
- handlers, binding in loops / Binding handlers in loops
- names, assigning to functions / Giving names to functions
- code example
- URL, for downloading / CSS selectors
- color animations / Color animations
- comparator function / Sorting simple JavaScript arrays
- computed style property values
- setting / Setting computed style-property values
- console.log() function / Chrome Developer Tools, Exercises
- console.log() method / Chrome Developer Tools
- Console tab / Chrome Developer Tools
- content
- setter method / Content getter and setter methods
- getter method / Content getter and setter methods
- Content Delivery Networks (CDNs) / Downloading jQuery
- contents property / Data type converters
- copying / Copying
- copyOffset() function / Callback functions
- copyOffset callback / Customizable defaults
- counter variable / Assigning event handlers
- CSS
- modifying, with inline properties / Modifying CSS with inline properties
- vendor-specific style properties, using / Using vendor-specific style properties
- CSS hook
- writing / Writing a CSS hook
- URL / Writing a CSS hook
- CSS selectors
- about / CSS selectors
- list-item levels, styling / Styling list-item levels
- custom events
- defining / Defining custom events
- infinite scrolling / Infinite scrolling
- parameters / Custom event parameters
- scrollToVisible parameter / Custom event parameters
- .offset() method / Custom event parameters
- .scrollTop() method / Custom event parameters
- custom selectors
- about / Custom selectors, Custom selectors
- alternate rows, styling / Styling alternate rows
- textual content based elements, finding / Finding elements based on textual content
- form selectors / Form selectors
- Cycle plugin
- about / Downloading and referencing the Cycle plugin, Calling a plugin method
D
- $(document).ready() / Executing the code
- arguments passing to / Passing arguments to $(document).ready()
- $(document).ready() call / Data type converters
- $(document).ready() event handler
- about / Performing tasks on page load, Timing of code execution
- $(document).ready() method / Summary
- $.Deferred() constructor / Using deferred objects
- $.Deferred([setupFunction]) function / Object creation
- $data / Using JSONP for remote data
- *disabled selector / Form selectors
- -disabled selector / Forms
- .data() method / Creating a widget, Storing data alongside DOM elements, Disentangling reference loops with jQuery
- .data(key) method / Data
- .data(key, value) method / Data
- .dblclick() method / Shorthand triggering
- .dblclick(handler) method / Shorthand binding
- .delay(duration, [queueName]) method / Queue manipulation
- .delay.promise([queueName], [target]) method / Queue manipulation
- .delegate() method / Using jQuery's delegation capabilities
- .delegate(selector, handlers) method / Binding
- .delegate(selector, type, [data], handler) method / Binding
- .dequeue([queueName]) method / Queue manipulation
- .detach([selector]) method / Removal
- .done() handler / Caching responses
- .done(callback) method / Methods of promise objects
- data
- loading, on demand / Loading data on demand
- format, selecting / Choosing a data format
- passing, to server / Passing data to the server
- GET request, performing / Performing a GET request
- POST request, performing / Performing a POST request
- form, serializing / Serializing a form
- deepEqual() function / Asynchronous testing
- Default button / Setting computed style-property values
- defaultValue property / The value of form controls
- Deferred objects
- using / Using deferred objects
- animation promises / Animation promises
- object, creation / Object creation
- methods / Methods of deferred objects
- promise objects, methods / Methods of promise objects
- descendants
- about / Descendants
- development tools
- using / Using development tools
- Dimensions / Dimensions
- docco
- URL / Distributing a plugin
- document
- elements, accessing / What jQuery does
- content, altering / What jQuery does
- changes, animating / What jQuery does
- setting up / Setting up the document
- document.addEventListener() method / Handling multiple scripts on one page
- dollar ($) alias
- using, in plugins / Using the dollar ($) alias in plugins
- DOM
- about / Understanding the DOM
- <html> element / Understanding the DOM
- <body> element / Understanding the DOM
- <head> element / Understanding the DOM
- $() function, using / Using the $() function
- traversal methods / DOM traversal methods
- specific cells, styling / Styling specific cells
- elements, accessing / Accessing DOM elements
- element properties / DOM element properties
- manipulation, methods / DOM manipulation methods in a nutshell
- manipulation hooks / DOM manipulation hooks
- loops between, managing / Managing loops between the DOM and JavaScript
- DOMContentLoaded event / Handling multiple scripts on one page
- DOM elements
- sorting / Sorting DOM elements
- dominator.js
- URL / Practical considerations
- DOM manipulation methods
- attributes and properties / Attributes and properties
- content / Content
- CSS / CSS
- dimensions / Dimensions
- insertion / Insertion
- replacement / Replacement
- removal / Removal
- copying / Copying
- data / Data
- DOM traversal
- about / DOM traversal under the hood
- jQuery object, properties / jQuery object properties
- DOM element stack / The DOM element stack
- method, writing / Writing a DOM traversal method plugin
- plugin, writing / Writing a DOM traversal method plugin
- performance / DOM traversal performance
- performance improving, chaining used / Improving performance using chaining
- performance improving, caching used / Improving performance with caching
- DOM traversal methods
- about / DOM traversal methods
- filtering / Filtering
- descendants / Descendants
- siblings / Siblings
- ancestors / Ancestors
- collection manipulation / Collection manipulation
- selected element / Working with selected elements
- DOM tree manipulation
- about / DOM tree manipulation
- $() function / The $() function revisited
- new elements, creating / Creating new elements
- new elements, inserting / Inserting new elements
- elements, moving / Moving elements
- elements, wrapping / Wrapping elements
- explicit iterator / Explicit iteration
- inverted insertion methods / Using inverted insertion methods
- done() method / Using deferred objects
- dot notation / Storing non-string data
- Download Theme button / jQuery UI ThemeRoller
- dox
- URL / Distributing a plugin
- duration
- about / Effects and duration
- dynamic table filtering
- about / Dynamic table filtering
E
- $.each() loop / Sorting and building rows with JSON, Binding handlers in loops
- $.each() method / Adding new global functions
- $.each(collection, callback) function / Arrays and objects
- $.event.special object / Extending events
- $.extend() function / Writing a custom selector plugin
- $.extend(target, addition, ...) function / Arrays and objects
- $eq() pseudo-class / Hiding and showing elements
- *enabled selector / Form selectors
- *even selector / Summary
- -empty selector / Miscellaneous selectors
- -enabled selector / Forms
- -eq(index) selector / Position among matched elements
- -even selector / Position among matched elements
- .each() callback / Giving names to functions
- .each(callback) method / Working with selected elements
- .empty() method / Removal
- .end() method / The DOM element stack, Collection manipulation
- .eq() method / Hiding and showing elements, Testing selector speed
- .error() method / Shorthand triggering
- .error(handler) method / Shorthand binding
- effect method / Queuing with callbacks
- effect methods
- Predefined effects / Effect methods
- custom animations / Custom animations
- queue manipulation / Queue manipulation
- effects
- disabling / Disabling all effects
- duration, defining / Defining effect durations
- element parameter / Writing a custom selector plugin
- elements
- hiding / Hiding and showing elements
- showing / Hiding and showing elements
- creating / Creating new elements
- inserting / Inserting new elements
- moving / Moving elements
- wrapping / Wrapping elements
- copying / Copying elements
- links, adding around existing text / Adding links around existing text
- JavaScript arrays, sorting / Sorting simple JavaScript arrays
- elements, multiple set
- about / Working with multiple sets of elements
- callbacks, queuing with / Queuing with callbacks
- effects / In a nutshell
- elements, single set
- about / Working with a single set of elements
- queue, bypassing / Bypassing the queue
- effects, queuing manually / Queuing effects manually
- effects / In a nutshell
- element selector / Simple CSS
- Elements tab / Chrome Developer Tools
- ending ($) / Styling links
- equal() test / Adding and running tests
- error
- handling / Error handling
- eval() call / Security limitations
- event
- propogation / Event propagation
- journey / The journey of an event
- event bubbling / The journey of an event
- side effects / Side effects of event bubbling
- event capturing / The journey of an event
- event context
- about / Consolidating code using the event context
- event delegation
- about / Delegating events, Event delegation
- event handler
- about / Removing an event handler
- namespaces, giving / Giving namespaces to event handlers
- events, rebinding / Rebinding events
- event handler context
- using / Making use of the event handler context
- event handlers / Assigning event handlers
- event methods
- about / Event methods
- bindings / Binding
- Shorthand binding / Shorthand binding
- triggering / Triggering
- Shorthand triggering / Shorthand triggering
- utility / Utility
- event namespacing / Giving namespaces to event handlers
- event object
- about / Altering the journey – the event object
- using, in handlers / Altering the journey – the event object
- event targets / Event targets
- .stopPropagation() method / Stopping event propagation
- default actions, preventing / Preventing default actions
- event delegation / Delegating events
- built-in event delegation capabilities, using / Using built-in event-delegation capabilities
- events
- and Ajax / Ajax and events
- about / Revisiting events
- additional data pages, adding / Loading additional pages of data
- data, displaying on hover / Displaying data on hovering
- delegation / Event delegation
- custom events, defining / Defining custom events
- throttling / Throttling events
- throttling, ways / Other ways to perform throttling
- extending / Extending events
- special events / More about special events
- events delegation
- jQuery's delegation capabilities, using / Using jQuery's delegation capabilities
- scope, selecting / Choosing a delegation scope
- early delegating / Delegating early
- event targets
- about / Event targets
- exclamation mark (!) / Styling links
- expando properties / Storing data alongside DOM elements
- expect() test / Adding and running tests
- explicit iterator / Explicit iteration
- expr object / Writing a custom selector plugin
F
- $() function
- using / Using the $() function
- $.fn.cycle.defaults object / Modifying parameter defaults
- -file selector / Forms
- -first-child selector / Position among siblings
- -first-of-type selector / Position among siblings
- -first selector / Position among matched elements
- -focus selector / Miscellaneous selectors
- .fadeIn() effect / Fading in and fading out
- .fadeIn([speed], [callback]) method / Predefined effects
- .fadeOut() effect / Fading in and fading out
- .fadeOut([speed], [callback]) method / Predefined effects
- .fadeTo(speed, opacity, [callback]) method / Predefined effects
- .fadeToggle([speed], [callback]) method / Predefined effects
- .fail() handler / Caching responses
- .fail() method / Error handling, Using deferred objects
- .fail(callback) method / Methods of promise objects
- .filter() method / DOM traversal methods, Dynamic table filtering
- .find() method / Dynamic table filtering
- .find(selector) method / Descendants
- .finish([queueName]) method / Queue manipulation
- .focus() method / Shorthand triggering
- .focus(handler) method / Shorthand binding
- .focusin(handler) method / Shorthand binding
- .focusout(handler) method / Shorthand binding
- factory method / Creating plugins with the jQuery UI widget factory
- fading in
- about / Fading in and fading out
- fading out
- about / Fading in and fading out
- fast speed / Speeding in
- filtering
- and striping, combining / Combining filtering and striping
- about / Filtering
- filtering functions / Striping table rows
- Firebug for Firefox
- URL / Using development tools
- fnRef() / Understanding variable scope
- for() loop / Adding new global functions
- for loop / Binding handlers in loops
- form
- serializing / Serializing a form
- forms
- about / Forms
- form selectors
- *input / Form selectors
- *button / Form selectors
- *enabled / Form selectors
- *disabled / Form selectors
- *checked / Form selectors
- *selected / Form selectors
- function
- adding, to jQuery namespace / Adding new global functions
- functional testing / Practical considerations
- function declaration / Rebinding events
- function reference / Rebinding events
- functions
- names, giving / Giving names to functions
- FuncUnit
- URL / Practical considerations
G
- $.get() function / Loading an XML document
- $.get(url, [data], [callback], [returnType]) method / Issuing requests
- $.getJSON() callback function / Modifying the JSON object
- $.getJSON() function / Using JSONP for remote data
- $.getJSON() method / Retrieving JSON, Using global jQuery functions
- $.getJSON(url, [data], [callback]) method / Issuing requests
- $.getScript() method / Security limitations
- $.getScript(url, [callback]) method / Issuing requests
- $.grep(array, callback, [invert]) function / Arrays and objects
- -gt(index) selector / Position among matched elements
- .get() method / Accessing DOM elements, Working with selected elements
- .get(index) method / Working with selected elements
- .getElementById() method / The Sizzle selector implementation
- .getElementsByClassName() method / The Sizzle selector implementation
- .getElementsByTagName() method / The Sizzle selector implementation
- .getJSON() method / Keeping an eye on the request
- get method / Writing a CSS hook
- GET request
- performing / Performing a GET request
- getter method / Content getter and setter methods
- GitHub
- URL / Finding plugins and help, Distributing a plugin
- global .ajaxError() method / Error handling
- global effect properties
- using / Using global effect properties
- global functions
- adding / Adding new global functions
- multiple functions, adding / Adding multiple functions
- global jQuery object, extending / Extending the global jQuery object
- isolating, within namespaces / Isolating functions within namespaces
- global functions plugin
- about / Global function plugins
- global jQuery functions
- using / Using global jQuery functions
- global jQuery object
- extending / Extending the global jQuery object
- glowColor property / Writing a CSS hook
- graceful degradation / Adding links around existing text
H
- $.holdReady(hold) function / Other
- *has() custom selector / Dynamic table filtering
- -has(a) selector / Miscellaneous selectors
- -header selector / Miscellaneous selectors
- -hidden selector / Miscellaneous selectors
- .hasClass() method / Implicit iteration
- .hasClass(class) method / Attributes and properties
- .height() method / Dimensions
- .hide() method / Hiding and showing elements, Predefined effects
- .hide(duration) method / Effects and duration
- .hide(speed, [callback]) method / Predefined effects
- .hover() / Side effects of event bubbling
- .hover() method / Event propagation, Displaying data on hovering
- .hover(enter, leave) method / Shorthand binding
- .html() method / Content getter and setter methods, Content
- .html(value) method / Content
- <head> element / Understanding the DOM
- <html> element / Understanding the DOM
- hooks
- finding / Writing a CSS hook
- horizontal class / Adding and running tests
- HTML
- appending / Appending HTML
- HTML 5
- custom data attributes / HTML5 custom data attributes
- HTML5
- custom data attributes, using / Using HTML5 custom data attributes
- HTML5 data-* attributes / Using HTML5 custom data attributes
- HTML document
- jQuery, setting up / Setting up jQuery in an HTML document
- HTML page
- parts, loading / Loading parts of an HTML page
I
- #id selector / Simple CSS
- $.inArray(value, array) function / Arrays and objects
- $.isArray(object) function / Object introspection
- $.isEmptyObject(object) function / Object introspection
- $.isFunction(object) function / Object introspection
- $.isNumeric(object) function / Object introspection
- $.isPlainObject(object) function / Object introspection
- $.isWindow(object) function / Object introspection
- $.isXMLDoc(object) function / Object introspection
- *input selector / Form selectors
- -image selector / Forms
- .index() call / Sorting DOM elements
- .index() method / Working with selected elements
- .index(element) method / Working with selected elements
- .innerHeight() method / Dimensions
- .innerWidth() method / Dimensions
- .insertAfter() method / Inserting new elements
- .insertAfter(selector) method / Insertion
- .insertBefore() method / Inserting new elements
- .insertBefore(selector) method / Insertion
- .is(selector) method / Working with selected elements
- .isRejected() method / Methods of promise objects
- .isResolved() method / Methods of promise objects
- <input> button / Giving names to functions
- ID selector / Using the $() function
- if-else statement / Toggling visibility
- image
- size, altering / Animation revisited
- img transport / Defining alternate transports
- immediately invoked function expression (IIFE) / Delegating early, Binding handlers in loops
- implicit iteration / Making use of the event handler context
- index parameter / Striping table rows, Writing a custom selector plugin
- inline properties
- CSS, modifying with / Modifying CSS with inline properties
- innerFn() / Creating inner functions
- inner functions
- creating / Creating inner functions
- innerFn() / Creating inner functions
- outerFn() / Creating inner functions
- callng, from elsewhere / Calling inner functions from elsewhere
- variable function / Understanding variable scope
- fnRef() / Understanding variable scope
- insertion / Insertion
- interaction components / Interaction components
- Internet Explorer Developer Tools
- URL / Using development tools
- inverted insertion methods / Using inverted insertion methods
- Invoked Function Expression (IIFE) / Using the dollar ($) alias in plugins
J
- .join() call / Harvesting JSONP data
- JavaScript
- versus jQuery / Plain JavaScript versus jQuery
- loops between, managing / Managing loops between the DOM and JavaScript
- JavaScript alert() function / Chrome Developer Tools
- JavaScript arrays
- sorting / Sorting simple JavaScript arrays
- JavaScript objects / Working with JavaScript objects
- JSON, retrieving / Retrieving JSON
- global jQuery functions, using / Using global jQuery functions
- script, executing / Executing a script
- JavaScript tasks / What jQuery does
- jQuery
- about / What jQuery does
- elements in document, accessing / What jQuery does
- web page appearance, modifying / What jQuery does
- features / What jQuery does
- document content, altering / What jQuery does
- user interaction, responding to / What jQuery does
- document changes, animating / What jQuery does
- information, retrieving from server / What jQuery does
- JavaScript tasks, simplifying / What jQuery does
- working / Why jQuery works well
- project documentation, URL / Why jQuery works well
- downloading / Downloading jQuery
- website, URL / Downloading jQuery
- versions / Deciding on the version of jQuery to use
- setting up, in HTML document / Setting up jQuery in an HTML document
- code, adding / Adding our jQuery code
- versus JavaScript / Plain JavaScript versus jQuery
- API documentation, URL / Custom selectors
- documentation, URL / Further reading, Exercises, Further reading, Exercises
- closures, creating / Creating closures in jQuery
- jQuery $.each() function / Binding handlers in loops
- jQuery.noConflict() / Passing an argument to the .ready() callback
- jQuery code
- poem text, finding / Finding the poem text
- new class, injecting / Injecting the new class
- executing / Executing the code
- jQuery Learning Center's
- documentation, URL / More about special events
- jQuery Migrate plugin
- URL / Deciding on the version of jQuery to use
- jQuery Mobile plugin library
- about / The jQuery Mobile plugin library
- HTML 5, custom data attributes / HTML5 custom data attributes
- mobile navigation / Mobile navigation
- multiple pages, delivering in one document / Delivering multiple pages in one document
- interactive elements / Interactive elements
- list views / List views
- toolbar buttons / Toolbar buttons
- advanced features / Advanced features
- .on() method / Advanced features
- theming / Advanced features
- PhoneGap integration / Advanced features
- jQuery namespace / Adding new global functions
- function, adding to / Adding new global functions
- jQuery object
- properties / Properties of the jQuery object
- jQuery object methods
- adding / Adding jQuery object methods
- context / Object method context
- implicit iteration / Implicit iteration
- chaining, enabling / Enabling method chaining
- jQuery Plugin Registry
- URL / Distributing a plugin
- jQuery UI modules
- URL / The jQuery UI plugin library
- jQuery UI plugin library
- about / The jQuery UI plugin library
- effects / Effects
- color animations / Color animations
- class animations / Class animations
- advanced easing function / Advanced easing
- additional effects / Additional effects
- interaction components / Interaction components
- widgets / Widgets
- jQuery UI ThemeRoller / jQuery UI ThemeRoller
- jQuery UI ThemeRoller
- about / jQuery UI ThemeRoller
- jQuery UI widget factory
- used, for creating plugins / Creating plugins with the jQuery UI widget factory
- widget, creating / Creating a widget
- widgets, destroying / Destroying widgets
- widgets, enabling / Enabling and disabling widgets
- widgets, disabling / Enabling and disabling widgets
- widget options, accepting / Accepting widget options
- submethods, adding / Adding submethods
- widget events, triggering / Triggering widget events
- jqXHR object
- using / Using the jqXHR object
- JSDoc
- URL / Distributing a plugin
- JSON
- retrieving / Retrieving JSON
- rows, building / Sorting and building rows with JSON
- rows, sorting / Sorting and building rows with JSON
- object, modifying / Modifying the JSON object
- content, rebuilding on demand / Rebuilding content on demand
- JSONP
- using, for remote data / Using JSONP for remote data
- data / Harvesting JSONP data
- jsPerf
- URL / Selector performance
K
- .keydown() method / Shorthand triggering
- .keydown(handler) method / Shorthand binding
- .keypress() method / Shorthand triggering
- .keypress(handler) method / Shorthand binding
- .keyup() method / Shorthand triggering
- .keyup(handler) method / Shorthand binding
- keyboard events
- about / Reacting to keyboard events
L
- *last-child pseudo-class / Exercises
- *last pseudo-class / Exercises
- -lang(language) selector / Miscellaneous selectors
- -last-child selector / Position among siblings
- -last-of-type selector / Position among siblings
- -last selector / Position among matched elements
- -lt(index) selector / Position among matched elements
- .last() method / Exercises
- .length method / Working with selected elements
- .load() method / Appending HTML, Keeping an eye on the request, Loading parts of an HTML page
- .load(handler) method / Shorthand binding
- .load(url, [data], [callback]) method / Issuing requests
- lexicographically / Sorting simple JavaScript arrays
- links
- styling / Styling links
- class, adding for e-mail links / Styling links
- adding, around existing text / Adding links around existing text
- list-item levels
- styling / Styling list-item levels
- Listing 10.13 / Extending events
- list views
- about / List views
- loops
- binding handlers / Binding handlers in loops
- between DOM, managing / Managing loops between the DOM and JavaScript
- between JavaScript, managing / Managing loops between the DOM and JavaScript
- low-level Ajax method
- about / The low-level Ajax method
M
- $.makeArray(object) function / Arrays and objects
- $.map(array, callback) function / Arrays and objects
- $.merge(array1, array2) function / Arrays and objects
- $.mobile.allowCrossDomainPages property / Advanced features
- .map(callback) method / Collection manipulation
- .mousedown() event / Exercises
- .mousedown(handler) method / Shorthand binding
- .mouseenter(handler) method / Shorthand binding
- .mouseleave(handler) method / Shorthand binding
- .mousemove(handler) method / Shorthand binding
- .mouseout(handler) method / Shorthand binding
- .mouseover(handler) method / Shorthand binding
- .mouseup() event / Exercises
- .mouseup(handler) method / Shorthand binding
- manipulation hooks, DOM
- about / DOM manipulation hooks
- $.attrHooks hook / DOM manipulation hooks
- $.cssHooks hook / DOM manipulation hooks
- $.propHooks hook / DOM manipulation hooks
- $.valHooks hook / DOM manipulation hooks
- matches parameter / Writing a custom selector plugin
- mathUtils object / Isolating functions within namespaces
- memory leak hazards
- handling / Handling memory-leak hazards
- micro-optimization / Selector performance
- miscellaneous selectors
- about / Miscellaneous selectors
- mobile navigation / Mobile navigation
- module / Organizing tests
- mouseenter / Event delegation
- mouseenter event / Side effects of event bubbling
- mouseleave / Event delegation
- mouseleave event / Side effects of event bubbling, Observing and interrupting animations
- mouseout / Event delegation
- mouseout event handler / Side effects of event bubbling
- mouseover / Event delegation
- Multi-property easing
- about / Multiproperty easing
N
- $.noConflict() method / Using the dollar ($) alias in plugins
- $.noConflict([removeAll]) function / Other
- $.noop() function / Other
- $.now() function / Other
- *nth-child() pseudo-class / Striping table rows, Exercises
- *nth-child() selector / Summary
- -not(a) selector / Position among matched elements
- -nth-child(even) selector / Position among siblings
- -nth-child(formula) selector / Position among siblings
- -nth-child(index) selector / Position among siblings
- -nth-child(odd) selector / Position among siblings
- -nth-last-child() selector / Position among siblings
- -nth-last-of-type() selector / Position among siblings
- -nth-of-type() selector / Position among siblings
- .naturalWidth properties / Defining alternate transports
- .next() method / Styling specific cells
- .next([selector]) method / Siblings
- .nextAll() method / Styling specific cells
- .nextAll([selector]) method / Siblings
- .nextUntil([selector], [filter]) method / Siblings
- .not() method / Dynamic table filtering
- .notify([args]) method / Methods of deferred objects
- next() function / Queuing effects manually
- nextPage event / Defining custom events
- nextPage handler / Defining custom events
- non-class attributes
- about / Non-class attributes
- value callbacks / Value callbacks
- non-string data
- storing / Storing non-string data
- Not a Number (NaM) / Storing non-string data
- notDeepEqual() function / Other types of tests
- notEqual() function / Other types of tests
O
- *odd selector / Summary
- -odd selector / Position among matched elements
- -only-child selector / Position among siblings
- -only-of-type() selector / Position among siblings
- .off(type, [selector], [handler]) method / Binding
- .offset() method / Custom event parameters, Dimensions
- .offsetParent() method / Ancestors
- .on() call / Defining custom events
- .on() method / A simple style switcher, Ajax and events, Advanced features
- .on(events, [selector], [data]) method / Binding
- .on(type, [selector], [data], handler) method / Binding
- .one(type, [data], handler) method / Binding
- .onload attribute / Handling multiple scripts on one page
- .outerHeight(includeMargin) method / Dimensions
- .outerWidth(includeMargin) method / Dimensions
- object introspection / Object introspection
- object literal / Reacting to keyboard events
- onclick property / Managing loops between the DOM and JavaScript
- onload event / Timing of code execution
- onload handler / Timing of code execution, Handling multiple scripts on one page
- onunload hander / Managing loops between the DOM and JavaScript
- Opera Dragonfly
- URL / Using development tools
- options object / The options object
- options property / Accepting widget options
- outerFn() / Creating inner functions
P
- $.propHooks hook / DOM manipulation hooks
- $.proxy() function / Creating a widget
- $.proxy(fn, context) method / Utility
- -parent selector / Miscellaneous selectors
- -password selector / Forms
- .parent([selector]) method / Ancestors
- .parents() method / Exercises
- .parents([selector]) method / Ancestors
- .parentsUntil([selector], [filter]) method / Ancestors
- .pipe([doneFilter], [failFilter]) method / Methods of promise objects
- .position() method / Dimensions
- .prepend(content) method / Insertion
- .prependTo() method / Inserting new elements
- .prependTo(selector) method / Insertion
- .prev() method / Styling specific cells
- .prev([selector]) method / Siblings
- .prevAll() method / Styling specific cells
- .prevAll([selector]) method / Siblings
- .preventDefault() method / Hiding and showing elements
- .preventDefault() statement / Dynamic table filtering
- .prevObject property / The DOM element stack
- .prevUntil([selector], [filter]) method / Siblings
- .progress(callback) method / Methods of promise objects
- .promise([target]) method / Methods of deferred objects
- .prop() method / DOM element properties, DOM tree manipulation, DOM manipulation hooks
- .prop(key) method / Attributes and properties
- .prop(key, fn) method / Attributes and properties
- .prop(key, value) method / Attributes and properties
- .prop(obj) method / Attributes and properties
- .pushStack(elements) method / Collection manipulation
- page
- multiple scripts on one page, handling / Handling multiple scripts on one page
- page load
- task, performing / Performing tasks on page load, Timing of code execution
- parseFloat() / Storing non-string data
- parseFloat() function / Setting computed style-property values
- Pause button / Global function plugins
- pdflink class / Styling links
- PhoneGap integration / Advanced features
- photo gallery
- creating / Revisiting events
- plugins
- about / Finding plugins and help, Other types of plugins
- using / Using a plugin
- Cycle plugin / Downloading and referencing the Cycle plugin
- method, calling / Calling a plugin method
- method parameters, specifying / Specifying plugin method parameters
- parameter defaults, modifying / Modifying parameter defaults
- custom selectors / Custom selectors
- global function plugins / Global function plugins
- dollar ($) alias, using / Using the dollar ($) alias in plugins
- options object / The options object
- parameter values / Default parameter values
- callback functions / Callback functions
- defaults, customizable / Customizable defaults
- design, recommendations / Plugin design recommendations
- distributing / Distributing a plugin
- POST request
- performing / Performing a POST request
- prefilter / Taking fine-grained control of animations
- prefilters, Ajax
- adding / Adding Ajax prefilters
- premature optimization / Selector performance
- prepRows() function / Modifying the JSON object
- progress() function / Taking fine-grained control of animations
- progressive enhancement
- URL / CSS selectors
- promise objects
- method / Methods of promise objects
- pseudo-class / Writing a custom selector plugin
- pull quotes
- cloning for / Cloning for pull quotes
Q
- .querySelectorAll() method / The Sizzle selector implementation
- .queue() method / Queuing with callbacks
- .queue([queueName]) method / Queue manipulation
- .queue([queueName], callback) method / Queue manipulation
- .queue([queueName], newQueue) method / Queue manipulation
- queued effects
- versus simultaneous effects / Simultaneous versus queued effects
- quick sort / Storing data alongside DOM elements
- QUnit
- URL, for downloading / Downloading QUnit
- document, setting up / Setting up the document
- website, URL / Other types of tests
- QUnit Cookbook
- URL / Further reading
R
- -radio selector / Forms
- -reset selector / Forms
- -root selector / Miscellaneous selectors
- .ready() callback
- argument, passing to / Passing an argument to the .ready() callback
- .ready() handler / Assigning event handlers
- .ready() method / Executing the code
- alternate syntax for / Alternate syntax for .ready()
- about / Passing an argument to the .ready() callback
- .ready(handler) method / Binding
- .reject() method / Using deferred objects
- .rejectWith(context, [args]) method / Methods of deferred objects
- .remove([selector]) method / Removal
- .removeAttr(key) method / Attributes and properties
- .removeClass() / Consolidating code using the event context
- .removeClass() method / Injecting the new class, Consolidating code using the event context, Manipulating attributes and properties
- .removeClass(class) method / Attributes and properties
- .removeData() method / Storing data alongside DOM elements
- .removeData(key) method / Data
- .removeProp(key) method / Attributes and properties
- .replaceAll(selector) method / Replacement
- .replaceWith(content) method / Replacement
- .resize(handler) method / Shorthand binding
- .resolve() method / Using deferred objects
- .resolve([args]) method / Methods of deferred objects
- .resolveWith(context, [args]) method / Methods of deferred objects
- .responseText / Using the jqXHR object
- .responseXML / Using the jqXHR object
- refactoring / Consolidating code using the event context
- reference loops
- about / Avoiding accidental reference loops
- with jQuery / Disentangling reference loops with jQuery
- removal / Removal
- remove / Extending events
- replacement / Replacement
- requestAnimationFrame() approach / Taking fine-grained control of animations
- Request button / Implementing progressive enhancement with Ajax
- rows
- building, with JSON / Sorting and building rows with JSON
- sorting, with JSON / Sorting and building rows with JSON
S
- $.sum() plugin / Adding multiple functions
- $.support.cors property / Advanced features
- $.support property / Properties of the jQuery object
- *selected selector / Form selectors
- * selector / Simple CSS
- -selected selector / Forms
- -submit selector / Forms
- .scroll(handler) method / Shorthand binding
- .scrollLeft() method / Dimensions
- .scrollLeft(value) method / Dimensions
- .scrollTop() method / Custom event parameters, Dimensions
- .scrollTop(value) method / Dimensions
- .select() method / Shorthand triggering
- .select(handler) method / Shorthand binding
- .send() method / Defining alternate transports
- .serialize() method / Serializing a form
- .setRequestHeader() / Using the jqXHR object
- .shadow() plugin / Accepting widget options
- .show() method / Hiding and showing elements, Predefined effects
- .show(duration) method / Effects and duration
- .show(speed, [callback]) method / Predefined effects
- .siblings() method / Styling specific cells
- .slideDown() method / Sliding up and sliding down, Queuing with callbacks
- .slideDown([speed], [callback]) method / Predefined effects
- .slider() method / Widgets
- .slideToggle() method / Toggling visibility, Building effects by hand
- .slideToggle([speed], [callback]) method / Predefined effects
- .slideUp() method / Sliding up and sliding down
- .slideUp([speed], [callback]) method / Predefined effects
- .sort() call / Sorting DOM elements
- .sort() method / Sorting simple JavaScript arrays
- .state() method / Methods of promise objects
- .status / Using the jqXHR object
- .status property / Handling Ajax errors
- .statusText / Using the jqXHR object
- .stop() method / Caution when halting animations
- .stop([clearQueue], [jumpToEnd]) method / Queue manipulation
- .stopPropagation() method / Stopping event propagation, Preventing default actions
- .submit() method / Shorthand triggering
- .swapClass() method / Object method context
- .switchClass() method / Object method context
- Safari Web Inspector
- URL / Using development tools
- scroll handler / Extending events
- scrollToVisible parameter / Custom event parameters
- selected class / Making use of the event handler context
- selectedIndex property / The value of form controls
- selector expressions
- about / Selector expressions
- Simple CSS / Simple CSS
- siblings, positions among / Position among siblings
- matched elements, positions among / Position among matched elements
- attributes / Attributes
- forms / Forms
- miscellaneous selectors / Miscellaneous selectors
- selectors
- customizing / Customizing and optimizing selectors
- optimizing / Customizing and optimizing selectors
- custom selector plugin, writing / Writing a custom selector plugin
- performance / Selector performance
- Sizzle selector implementation / The Sizzle selector implementation
- speed, testing / Testing selector speed
- Selenium
- URL / Practical considerations
- server
- data, passing to / Passing data to the server
- setInterval() function / Other ways to perform throttling
- set method / Writing a CSS hook
- set parameter / Writing a custom selector plugin
- setter method / Content getter and setter methods
- setup / Extending events
- setup() callback function / Adding and running tests
- setup callback / Extending events
- shake behavior / Additional effects
- Shorthand binding / Shorthand binding
- shorthand element creation syntax
- using / Using shorthand element-creation syntax
- shorthand events / Shorthand events
- Shorthand triggering / Shorthand triggering
- showBio() function / Animation promises
- showDetails() function / Multiproperty easing, Animation promises
- siblings
- about / Siblings
- simple events
- about / Handling simple events
- switcher / A simple style switcher
- other buttons, enabling / Enabling the other buttons
- event handler context, using / Making use of the event handler context
- simultaneous effects
- queued effects / Simultaneous versus queued effects
- Sizzle
- selector implementation / The Sizzle selector implementation
- Sjax / Appending HTML
- slide callback / Widgets
- slow speed / Speeding in
- Smaller button / Setting computed style-property values
- sort-alpha class / Sorting DOM elements
- sort class / Sorting DOM elements
- sortDirection variable / Alternating sort directions
- sorting
- tables, on server / Sorting tables on the server
- tables, Ajax used / Sorting tables using Ajax
- tables, within browser / Sorting tables within the browser
- Sources tab / Chrome Developer Tools
- specialEasing option / Multiproperty easing
- speed
- about / Speeding in
- slow speed / Speeding in
- fast speed / Speeding in
- including, in example / Speeding in
- stack / The DOM element stack
- step() function / Taking fine-grained control of animations
- strictEqual() function / Other types of tests
- stripe() / Combining filtering and striping
- striping
- and filtering, combining / Combining filtering and striping
- submit(handler) method / Shorthand binding
- sum method / Adding new global functions
T
- $.trim() function / Sorting DOM elements
- $.trim(string) function / Other
- $.type(object) function / Object introspection
- -target selector / Miscellaneous selectors
- -text selector / Forms
- .text() method / Toggling visibility, Value callbacks, Content getter and setter methods, Content
- .text(value) method / Content
- .then(doneCallbacks, failCallbacks) method / Methods of promise objects
- .toArray() method / Working with selected elements
- .toggle([speed], [callback]) method / Predefined effects
- .toggleClass() method / Showing and hiding advanced features, Manipulating attributes and properties, Advanced easing
- .toggleClass(class) method / Attributes and properties
- .trigger() call / Defining custom events
- .trigger() method / Simulating user interaction
- .trigger(type, [data]) method / Triggering
- .triggerHandler(type, [data]) method / Triggering
- table rows
- striping / Striping table rows
- tables
- on server, sorting / Sorting tables on the server
- sorting, Ajax used / Sorting tables using Ajax
- sorting, within browser / Sorting tables within the browser
- within browser, sorting / Sorting tables within the browser
- tag name selector / Using the $() function
- teardown / Extending events
- tests
- organizing / Organizing tests
- running / Adding and running tests
- adding / Adding and running tests
- Asynchronous testing / Asynchronous testing
- types / Other types of tests
- textual content
- based elements, finding / Finding elements based on textual content
- theming / Advanced features
- this keyword / Implicit iteration
- throws() function / Other types of tests
- timeout option / Specifying plugin method parameters
- timestamp / Storing non-string data
- title attribute / Attribute selectors, Value callbacks
- toggleSwitcher handler / Rebinding events
- toggling
- visibility / Toggling visibility
- traversal methods, DOM
- specific cells, styling / Styling specific cells
- chaining / Chaining
- trigerring / Triggering
U
- $.unique(array) function / Arrays and objects
- .unbind([type], [handler]) method / Binding
- .undelegate() method / Using jQuery's delegation capabilities
- .undelegate(selector, type, [handler]) method / Binding
- .unload(handler) method / Shorthand binding
- .unwrap() method / Removal
- unit testing / Practical considerations
- URL / Further reading
- user interaction
- responding to / What jQuery does
- about / Simulating user interaction
V
- $.valHooks hook / DOM manipulation hooks
- -visible selector / Miscellaneous selectors
- .val() method / DOM manipulation hooks, Attributes and properties
- .val(value) method / Attributes and properties
- value callbacks
- about / Value callbacks
- variable scope
- about / Understanding variable scope
- vendor-specific style properties
- using / Using vendor-specific style properties
W
- $.when(deferreds) function / Object creation
- .which property / Reacting to keyboard events
- .width() method / Dimensions
- .width(value) method / Dimensions
- .width properties / Defining alternate transports
- .wrap(content) method / Insertion
- .wrapInner() method / Adding links around existing text
- .wrapInner(content) method / Insertion
- web page
- appearance, modifying / What jQuery does
- widget
- about / Creating plugins with the jQuery UI widget factory
- creating / Creating a widget
- destroying / Destroying widgets
- enabling / Enabling and disabling widgets
- disabling / Enabling and disabling widgets
- options, accepting / Accepting widget options
- submethods, adding / Adding submethods
- events, trigerring / Triggering widget events
- widgets
- about / Widgets
- window.onload event / Timing of code execution
- wrapping methods / Wrapping elements
- WWW
- URL / CSS selectors
X
- XAMPP
- URL / Passing data to the server
- XML document
- loading / Loading an XML document
- XMLHttpRequest object / Using the jqXHR object
Y
- Yahoo Weather
- URL / Choosing a data format
- YAML
- URL / Data type converters
- yaml.js file / Data type converters
- YAML file / Data type converters