jQuery essentials : optimize and implement the features of jQuery to build and maintain your websites with minimum hassle /
Annotation
Clasificación: | Libro Electrónico |
---|---|
Autor principal: | |
Formato: | Electrónico eBook |
Idioma: | Inglés |
Publicado: |
Birmingham :
Packt Publishing,
2016.
|
Colección: | Community experience distilled.
|
Temas: | |
Acceso en línea: | Texto completo |
Tabla de Contenidos:
- Cover ; Copyright; Credits; About the Author; About the Reviewers; www.PacktPub.com; Table of Contents; Preface; Chapter 1: jQuery Part by Part ; Life before jQuery; Why was jQuery created?; The major components of jQuery; The DOM selection; DOM manipulation; Events; Form; CSS and animation; Ajax; Helpers; Why are there two maintained versions of jQuery?; The difference between minified and un-minified versions; What is a content delivery network?; Summary; Chapter 2: jQuery Selectors and Filters ; jQuery selectors; The chapter code; Protocol-relative URLs; The jQuery object
- Creating selectorsID selectors; Class selectors; Tag selectors; Combining selectors; Descendent selectors; Attribute selectors; Creating basic filter selectors; Content filters; Using chaining to quickly and neatly continue queries; Summary; Chapter 3: Manipulating the DOM ; Dimensions and positions; Examples; Developer tools; Reading the size of the screen and elements; Classes and styles; The JSON object; Behavior classes; Attributes and properties; Keeping images proportional; Removing attributes and properties; Summary; Chapter 4: Events ; The ready event; Hooking events; Unhooking events
- Namespacing eventsThe event handler; The event object; event.target; event.relatedTarget; event.type; event.which; event.metaKey; event.pageX and event.pageY; event.originalEvent; Passing data to an event; Event shorthand methods; Creating your own events; Triggering events; The death of the .live() and .die() methods; Looking deeper at .on(); Summary; Chapter 5: Making your site snazzy with jQuery ; The importance of animations; Hiding and showing elements; .fadeOut(); .fadeIn(); .fadeToggle(); Sliding elements around; .slideUp(); .slideDown(); .slideToggle(); Creating custom effects
- .Animate().delay(); .queue(), .dequeue(), and .clearQueue(); .stop() and .finish(); jQuery.fx.interval and jQuery.fx.off; Using effects correctly; Summary; Chapter 6: Better Forms with jQuery ; Employing form methods; .submit(); .focus(); .blur(); .focusin() and .focusout(); .change(); .select(); Tooltips; Placeholder; Enabling and disabling elements; Validation; Filtering out unwanted characters; Summary; Chapter 7: Talking to your Server ; Before jQuery; How jQuery helps us; Loading HTML
- .load(); Loading JSON Data
- .getJSON(); Loading and executing JavaScript
- getScript()
- Reading and writing data: jQuery.get() and .jQuery.post()Helper methods; Creating query data
- .param(); Creating query data from a form
- .serialize(); Creating an object from form data
- .serializeArray(); Ajax events; When an Ajax request begins
- .ajaxStart(); When an Ajax request completes
- .ajaxStop(); When an Ajax request sends data
- .ajaxSend(); When an Ajax request fails
- .ajaxError(); When an Ajax request succeeds
- .ajaxSuccess(); When an Ajax request finishes
- .ajaxComplete(); Summary; Chapter 8: Writing Code that You can Read Later ; Separation of concerns