Автор: Keith B. Wood
Издательство: Manning Publications
Год: 2013
Язык: английский
Формат: pdf
Размер: 16.7 MB
jQuery is the most widely used jаvascript library on the web, offering many abilities that make web development much easier. But it concentrates on providing features that are widely applicable and widely used, and can’t do everything that you might want. You could code your extra requirements inline for each web page, but if you find yourself repeating code across several pages it may be time to create a plugin for jQuery instead.
A plugin lets you package your code in a single reusable module that can then be easily applied to any number of web pages. You benefit by having a single code base, with reduced testing and maintenance costs, and a consistent appearance and behavior throughout your website.
jQuery has been designed to accommodate these plugins, allowing them to become first-class members of the jQuery environment and to be used alongside the built-in functionality. This book explains how you can use best practice principles to produce a jQuery plugin that integrates with jQuery without interfering with other plugins and that provides a flexible and robust solution.
Extending jQuery teaches you to build custom extensions to the jQuery library. In it, you'll discover how to write plugins and how to design them for maximum reuse. You'll also learn to write new widgets and effects for the jQuery UI. Along the way, you'll explore extensions in key areas including Ajax, events, animation, and validation.
What's inside:
Create jQuery UI widgets and effects
Make extensions available for distribution and reuse
Build your own libraries
About the reader:
This book assumes intermediate-level knowledge of jQuery and jаvascript. No experience writing plugins or other extensions is required.
Скачать Extending jQuery