jQuery Essentials

Packt Publishing Limited
  • 1. Auflage
  • |
  • erschienen am 30. Januar 2016
  • |
  • 180 Seiten
E-Book | ePUB mit Adobe DRM | Systemvoraussetzungen
978-1-78528-265-2 (ISBN)
Optimize and implement the features of JQuery to build and maintain your websites with minimum hassleAbout This BookBuild dynamic websites efficiently without any performance issuesLearn to use existing jQuery plugins and or write your own for your websitesThis is the most up-to-date book on the market at the moment, packed with detailed explanations and real-world examplesWho This Book Is ForWhether you are a beginner or an experienced developer who is looking for quick answers, you will find what you need in this book.What You Will LearnQuickly find and modify HTML DOM elementsUse animation to add flair to your siteCreate your own events to decouple your applicationMeasure the performance of your website's JavaScriptWrite unit tests to ensure that your application is behaving correctlyUse plugins to to save reinventing the wheel and enhance your site quicklyUse client-side validation on forms to prevent your users from sending bad data to your applicationWrite your own jQuery plugins in order to encapsulate your company's business logicIn DetailJQuery is still the most popular JavaScript library. It is used in over 60% of the top websites on the Internet. It was written to make DOM manipulation (so, moving things around a web page) easier for developers. It acts through JavaScript to ascribe HTML elements to the DOM attributes. Because it is a library of predefined functions, all you need to start using jQuery is a working knowledge of the syntax and a reference for the functions available to you.This practical guide shows you how to make the most of jQuery to boost the performance of your websites and applications. We start off with a quick glance through the basics of JQuery, followed by the explanation of JQuery selectors, filters, and DOM element manipulation. After this, you will learn how events and animations can be used to create and design beautiful and user-friendly sites. Next, you will be familiarized with Ajax functions to help you send and receive data from your server. Finally, we'll walk you through using built-in plugins and eventually create your own plugins for your websites.By the end of this book, you will be able to to build robust and efficient websites successfully using JQuery.Style and approach This book takes a fast but thorough walk through jQuery. The goal is to get you writing fast and efficient jQuery quickly. It uses easy-to-read, jargon-free text and lots of ready-to-use code examples.
  • Englisch
  • Birmingham
  • |
  • Großbritannien
978-1-78528-265-2 (9781785282652)
1785282654 (1785282654)
weitere Ausgaben werden ermittelt
Troy Miles, a.k.a. the Rockncoder, began writing games in assembly language for early computers, such as the Apple II, Vic20, C64, and the IBM PC, over 35 years ago. Currently, he spends his days writing web apps for a Southern California-based automotive valuation and information company. During the nights and weekends, he can usually be found writing cool apps for mobile and Web or teaching other developers how to do that. He likes to post interesting code nuggets on his blog at http://therockncoder.com and videos on his YouTube channel at https://www.youtube.com/user/rockncoder. He can be reached at rockncoder@gmail.com.
  • 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 selectors
  • ID 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 events
  • The 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
  • Breaking code into logical units
  • Using events to decouple code
  • Using unit tests
  • Why write unit tests at all?
  • Summary
  • Chapter 9: Faster jQuery
  • Writing performance tests
  • Measuring jQuery
  • jQuery selectors
  • Using IDs over other selectors
  • Caching your selectors
  • Optimizing selectors
  • Right to left
  • Reducing overly specific selectors
  • Narrowing your search
  • Other jQuery optimizations
  • Updating to the latest version
  • Using the correct version of jQuery
  • Don't use deprecated methods
  • Using preventDefault() when appropriate
  • Never modify the DOM in a loop
  • jQuery isn't always the answer
  • Using document.getElementById
  • Using CSS
  • Summary
  • Chapter 10: Benefiting from the Work of Others with Plugins
  • Finding plugins
  • Installing plugins
  • Updating a plugin
  • Uninstalling plugins
  • Adding a plugin
  • jQuery UI
  • jQuery UI Interactions
  • jQuery UI widgets
  • The jQuery UI widget factory
  • Writing your own plugin
  • Prep work
  • The plugin
  • Best practices
  • Summary
  • Index

Dateiformat: EPUB
Kopierschutz: Adobe-DRM (Digital Rights Management)


Computer (Windows; MacOS X; Linux): Installieren Sie bereits vor dem Download die kostenlose Software Adobe Digital Editions (siehe E-Book Hilfe).

Tablet/Smartphone (Android; iOS): Installieren Sie bereits vor dem Download die kostenlose App Adobe Digital Editions (siehe E-Book Hilfe).

E-Book-Reader: Bookeen, Kobo, Pocketbook, Sony, Tolino u.v.a.m. (nicht Kindle)

Das Dateiformat EPUB ist sehr gut für Romane und Sachbücher geeignet - also für "fließenden" Text ohne komplexes Layout. Bei E-Readern oder Smartphones passt sich der Zeilen- und Seitenumbruch automatisch den kleinen Displays an. Mit Adobe-DRM wird hier ein "harter" Kopierschutz verwendet. Wenn die notwendigen Voraussetzungen nicht vorliegen, können Sie das E-Book leider nicht öffnen. Daher müssen Sie bereits vor dem Download Ihre Lese-Hardware vorbereiten.

Weitere Informationen finden Sie in unserer E-Book Hilfe.

Download (sofort verfügbar)

20,25 €
inkl. 19% MwSt.
Download / Einzel-Lizenz
ePUB mit Adobe DRM
siehe Systemvoraussetzungen
E-Book bestellen

Unsere Web-Seiten verwenden Cookies. Mit der Nutzung dieser Web-Seiten erklären Sie sich damit einverstanden. Mehr Informationen finden Sie in unserem Datenschutzhinweis. Ok