1.

Record Nr.

UNINA9910819192303321

Autore

Chaffer Jonathan

Titolo

Learning jQuery : better interaction, design, and web development with simple JavaScript techniques / / Jonathan Chaffer, Karl Swedberg ; [foreword by John Resig]

Pubbl/distr/stampa

Birmingham, : Packt Pub., 2013

ISBN

1-68015-355-2

1-78216-315-8

Edizione

[4th ed.]

Descrizione fisica

1 online resource (445 p.)

Collana

Community experience distilled

Altri autori (Persone)

SwedbergKarl

Disciplina

006.76

Soggetti

JavaScript (Computer program language)

Web site development

Web sites - Design

Lingua di pubblicazione

Inglese

Formato

Materiale a stampa

Livello bibliografico

Monografia

Note generali

Description based upon print version of record.

Nota di bibliografia

Includes bibliographical references and index.

Nota di contenuto

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

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

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 - 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

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

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

Explicit iteration

Sommario/riassunto

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.