Cargando…

Learning jQuery.

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

Descripción completa

Detalles Bibliográficos
Clasificación:Libro Electrónico
Autor principal: Chaffer, Jonathan
Otros Autores: Swedberg, Karl
Formato: Electrónico eBook
Idioma:Inglés
Publicado: Birmingham : Packt Publishing, 2013.
Edición:4th ed.
Colección:Community experience distilled.
Temas:
Acceso en línea:Texto completo
Tabla de Contenidos:
  • 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.