• Complain

Keith Wood - Extending jQuery

Here you can read online Keith Wood - Extending jQuery full text of the book (entire story) in english for free. Download pdf and epub, get meaning, cover and reviews about this ebook. year: 2013, publisher: Manning Publications, genre: Computer. Description of the work, (preface) as well as reviews are available. Best literature library LitArk.com created for fans of good reading and offers a wide selection of genres:

Romance novel Science fiction Adventure Detective Science History Home and family Prose Art Politics Computer Non-fiction Religion Business Children Humor

Choose a favorite category and find really read worthwhile books. Enjoy immersion in the world of imagination, feel the emotions of the characters or learn something new for yourself, make an fascinating discovery.

Keith Wood Extending jQuery
  • Book:
    Extending jQuery
  • Author:
  • Publisher:
    Manning Publications
  • Genre:
  • Year:
    2013
  • Rating:
    4 / 5
  • Favourites:
    Add to favourites
  • Your mark:
    • 80
    • 1
    • 2
    • 3
    • 4
    • 5

Extending jQuery: summary, description and annotation

We offer to read an annotation, description, summary or preface (depends on what the author of the book "Extending jQuery" wrote himself). If you haven't found the necessary information about the book — write in the comments, we will try to find it.

Extending jQuery teaches you to build custom extensions to the jQuery library. It covers all the extension points within jQuery and provides guidelines and techniques on how to make use of them. Youll not only discover how to write plugins, but how to design them for maximum reuse. Youll also learn how to write new widgets and effects for jQuery UI. Along the way, youll explore extensions in key areas including Ajax, events, animation, and validation.jQuery, the most popular JavaScript library, helps make client-side scripting of HTML easy. It offers many built-in abilities to traverse and alter the DOM, but it cant do everything. Fortunately, you can tap into jQuerys numerous extension points to create your own selectors and filters, plugins, animations, and more.Extending jQuery teaches you to build custom extensions to the jQuery library. In it, youll discover how to write plugins and how to design them for maximum reuse. Youll also learn to write new widgets and effects for the jQuery UI. Along the way, youll explore extensions in key areas including Ajax, events, animation, and validation.This book assumes intermediate-level knowledge of jQuery and JavaScript. No experience writing plugins or other extensions is required.Whats Inside:Create jQuery UI widgets and effectsMake extensions available for distribution and reuseBuild your own libraries

Summary

Extending jQuery teaches you to build custom extensions to the jQuery library. It covers all the extension points within jQuery and provides guidelines and techniques on how to make use of them. Youll not only discover how to write plugins, but how to design them for maximum reuse. Youll also learn how to write new widgets and effects for jQuery UI. Along the way, youll explore extensions in key areas including Ajax, events, animation, and validation.

About the Technology

jQuery, the most popular JavaScript library, helps make client-side scripting of HTML easy. It offers many built-in abilities to traverse and alter the DOM, but it cant do everything. Fortunately, you can tap into jQuerys numerous extension points to create your own selectors and filters, plugins, animations, and more.

About this Book

Extending jQuery teaches you to build custom extensions to the jQuery library. In it, youll discover how to write plugins and how to design them for maximum reuse. Youll also learn to write new widgets and effects for the jQuery UI. Along the way, youll explore extensions in key areas including Ajax, events, animation, and validation.

This book assumes intermediate-level knowledge of jQuery and JavaScript. No experience writing plugins or other extensions is required.

Purchase of the print book includes a free eBook in PDF, Kindle, and ePub formats from Manning Publications.

Whats Inside

  • Create jQuery UI widgets and effects
  • Make extensions available for distribution and reuse
  • Build your own libraries

About the Author

Keith Wood has developed over 20 jQuery plugins including the original Datepicker, World Calendar, Countdown, and SVG.

Keith Wood: author's other books


Who wrote Extending jQuery? Find out the surname, the name of the author of the book and a list of all author's works by series.

Extending jQuery — read online for free the complete book (whole text) full work

Below is the text of the book, divided by pages. System saving the place of the last page read, allows you to conveniently read the book "Extending jQuery" online for free, without having to search again every time where you left off. Put a bookmark, and you can go to the page where you finished reading at any time.

Light

Font size:

Reset

Interval:

Bookmark:

Make
Extending jQuery
Keith Wood

Extending jQuery - image 1

Copyright

For online information and ordering of this and other Manning books, please visit www.manning.com. The publisher offers discounts on this book when ordered in quantity. For more information, please contact

Special Sales Department Manning Publications Co. 20 Baldwin Road PO Box 261 Shelter Island, NY 11964 Email: orders@manning.com

2013 by Manning Publications Co. All rights reserved.

No part of this publication may be reproduced, stored in a retrieval system, or transmitted, in any form or by means electronic, mechanical, photocopying, or otherwise, without prior written permission of the publisher.

Many of the designations used by manufacturers and sellers to distinguish their products are claimed as trademarks. Where those designations appear in the book, and Manning Publications was aware of a trademark claim, the designations have been printed in initial caps or all caps.

Picture 2 Recognizing the importance of preserving what has been written, it is Mannings policy to have the books we publish printed on acid-free paper, and we exert our best efforts to that end. Recognizing also our responsibility to conserve the resources of our planet, Manning books are printed on paper that is at least 15 percent recycled and processed without elemental chlorine.

Picture 3Manning Publications Co.20 Baldwin RoadPO Box 261Shelter Island, NY 11964Development editor: Cynthia KaneCopyeditor: Benjamin BergTechnical proofreaders: Renso Hollhumer, Michiel TrimpeProofreader: Andy CarrollTypesetter: Marija TudorCover designer: Marija Tudor

ISBN: 9781617291036

Printed in the United States of America

1 2 3 4 5 6 7 8 9 10 MAL 18 17 16 15 14 13

Brief Table of Contents
Table of Contents
Foreword

Since jQuerys debut in 2006, it has grown into the most popular JavaScript library for managing and enhancing HTML documents. jQuerys cross-browser design allows developers to focus on building websites instead of puzzling out browser peculiarities. In 2013, more than one-half of the top million websites (measured by visitor traffic) use jQuery. Similarly, the jQuery UI library, which builds on jQuery, is the most popular source of UI widgets.

With that popularity comes the temptation for the jQuery team to add features so that nearly any problem encountered by a developer can be solved with the incantation of a jQuery method. Yet every feature added to the core code of jQuery means more bytes of JavaScript for website visitors to download, whether or not a feature is used in that sites development. Such a large monolithic library would degrade performance just for the convenience of web development, which isnt a good trade-off.

To combat the scourge of code bloat, jQuerys philosophy is to put only the most common functionality in the library and provide a foundation developers can extend. An incredible ecosystem of jQuery plugins has grown over the years, driven by each developers need to scratch a particular itch and their generosity in sharing code with the wider jQuery community. Much of jQuerys success can be attributed to this ethos and the team fosters it through sites like plugins.jquery.com.

Keith Wood is well suited to be your guide through Extending jQuery. Hes been a regular fixture in the jQuery Forum and a top contributor for several years, providing high-quality answers to the real-life problems developers encounter. Hes also earned his street cred by developing several popular jQuery plugins. As a result, Keith has a practitioners understanding of jQuery extensions combined with an instructors intuition about which jQuery topics deserve a deep explanation rather than a passing mention.

This book delves into just about every facet of extending jQuerys functionality, whether for personal needs or professional profit. The best-known type of extension is the basic jQuery plugin that extends jQuery Core methods, but the book gives equal time to jQuery UI widget-based plugins that are often a better foundation for visually oriented extensions. Detailed documentation on the jQuery UI widget factory is scarce, which makes these chapters all the more valuable.

Im especially pleased that Keith dedicates some time to the topics of unit tests. Having a set of thorough unit tests seems like needless extra work, right up until the point a few months later where an innocuous change to a plugin causes the entire web team hours of debugging on a live site while user complaints flood in. Unit tests cant find all bugs, but they act as a sanity check and prevent obvious regressions that manual testing by an impatient developer tends to miss.

Whatever your reason for learning about jQuery extensions, please consider contributing your work back to the community as open source if it seems that others might benefit from it. This is a natural fit with jQuerys own philosophy. Sharing your knowledge with others not only helps them, but it comes back to you in professional recognition.

D AVE M ETHVIN P RESIDENT , J Q UERY F OUNDATION

Preface

I first encountered jQuery in early 2007 and immediately found it intuitive and simple to use. I was quickly selecting elements and showing and hiding them. Next I tried to use some of the third-party plugins on offer, but found that they varied widely in usefulness and usability.

I was fortunate to start my plugin writing with what was to become a major plugin in the jQuery community. I came across Marc Grabanskis Clean Calendar plugin, which he had converted into a jQuery plugin, and liked the interface it provided for entering a date. I started playing with it to add more features as a way to explore jQuerys capabilities and eventually offered these back to Marc. So started a collaboration on this plugin over the next couple of years.

At that point the Calendar plugin had been renamed Datepicker and had been chosen by the jQuery UI team as the basis for its date-picker offering.

Since that start Ive been developing other plugins as the need or interest arose. Some of my most popular ones are an alternative Datepicker that also allows for picking date ranges or multiple individual dates, a Calendars plugin that provides support for non-Gregorian calendars, a Countdown plugin to show the time remaining until a given date and time, and an SVG Integration plugin that allows you to interact with SVG elements on the web page. During this time Ive learned a lot about JavaScript and jQuery and how to write plugins for the latter.

Creating plugins is an ideal way to capture functionality in a reusable format, making it simple to incorporate into other web pages. It lets you more thoroughly test the code and ensures consistent behavior wherever it is used.

jQuery has grown significantly in size and functionality over the intervening years, but it has remained true to its purpose of making the developers life easier. The thriving plugin community is a testament to the foresight of the jQuery team in providing a platform that can be easily extended. I hope that the insights presented in this book allow you to make the most of jQuery in your own projects.

Acknowledgments

Ill begin by thanking John Resig and the jQuery team for providing such a useful tool for web developers throughout the world.

Thanks also to Marc Grabanski for allowing me to contribute to the Calendar/ Datepicker plugin and for launching me into plugin development.

Next page
Light

Font size:

Reset

Interval:

Bookmark:

Make

Similar books «Extending jQuery»

Look at similar books to Extending jQuery. We have selected literature similar in name and meaning in the hope of providing readers with more options to find new, interesting, not yet read works.


Reviews about «Extending jQuery»

Discussion, reviews of the book Extending jQuery and just readers' own opinions. Leave your comments, write what you think about the work, its meaning or the main characters. Specify what exactly you liked and what you didn't like, and why you think so.