Learning jQuery
Contributors: Swedberg, Karl
Edition: 4th ed.
Series: Community experience distilled; Community experience distilled
Publisher: Packt Publishing
Published: 2013
Place of publication: Birmingham
Language: eng
Number of pages: 445
ISBN-13: 9781782163152; 9781680153552; 9781782163145
Subjects: JavaScript (Computer program language); Web site development; Web sites; Design; COMPUTERS; General
Description: Step through each of the core concepts of the jQuery library, building an overall picture of its capabilities. Once you have thoroughly covered the basics, the book returns to each concept to cover more advanced examples and techniques. 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. Basic JavaScript programming and knowledge of HTML and CSS is required. No knowledge of jQuery is assumed, nor is experience with any other JavaScript libraries.
Notes: Explicit iteration.
Table of contents: title: Preface; _GoBack; OLE_LINK2; Getting Started; What jQuery does; Why jQuery works well; Making our first jQuery-powered web page; Downloading jQuery; Deciding on the version of jQuery to use; Setting up jQuery in an HTML document; Adding our jQuery code; Finding the poem text; Injecting the new class; Executing the code; The finished product; Plain JavaScript versus jQuery; Using development tools; Chrome Developer Tools; Summary; Selecting Elements; Understanding the DOM; _GoBack; Using the () function; CSS selectors; OLE_LINK20; OLE_LINK21; Styling list-item levels; OLE_LINK1; OLE_LINK2.; title: Attribute selectorsStyling links; Custom selectors; Styling alternate rows; Finding elements based on textual content; Form selectors; DOM traversal methods; Styling specific cells; Chaining; Accessing DOM elements; Summary; Further reading; OLE_LINK23; OLE_LINK24; Exercises; OLE_LINK3; OLE_LINK4; Handling Events; Performing tasks on page load; Timing of code execution; Handling multiple scripts on one page; Alternate syntax for .ready(); Passing an argument to the .ready() callback; Handling simple events; A simple style switcher; OLE_LINK2; OLE_LINK1; Enabling the other buttons.; title: Making use of the event handler contextConsolidating code using the event context; Shorthand events; Showing and hiding advanced features; Event propagation; The journey of an event; Side effects of event bubbling; Altering the journey; title: the event object; Event targets; Stopping event propagation; Preventing default actions; Delegating events; Using built-in event-delegation capabilities; Removing an event handler; Giving namespaces to event handlers; Rebinding events; Simulating user interaction; Reacting to keyboard events; Summary; Further reading; Exercises; OLE_LINK24; OLE_LINK23.; title: OLE_LINK4OLE_LINK3; Styling and Animating; Modifying CSS with inline properties; OLE_LINK12; OLE_LINK11; Setting computed style-property values; OLE_LINK8; OLE_LINK7; Using vendor-specific style properties; Hiding and showing elements; Effects and duration; Speeding in; Fading in and fading out; Sliding up and sliding down; Toggling visibility; Creating custom animations; Building effects by hand; Animating multiple properties at once; OLE_LINK6; OLE_LINK5; OLE_LINK10; OLE_LINK9; Positioning with CSS; OLE_LINK14; OLE_LINK13; Simultaneous versus queued effects.; title: Working with a single set of elementsBypassing the queue; Queuing effects manually; Working with multiple sets of elements; OLE_LINK16; OLE_LINK15; Queuing with callbacks; In a nutshell; Summary; Further reading; Exercises; Manipulating the DOM; Manipulating attributes and properties; Non-class attributes; Value callbacks; OLE_LINK1; OLE_LINK2; OLE_LINK3; OLE_LINK4; DOM element properties; The value of form controls; DOM tree manipulation; The () function revisited; Creating new elements; Inserting new elements; OLE_LINK5; OLE_LINK6; Moving elements; Wrapping elements; OLE_LINK11; OLE_LINK12.