jQuery Plugin Development Beginner's Guide by Giulio Bai PDF

By Giulio Bai

ISBN-10: 1849512248

ISBN-13: 9781849512244

ISBN-10: 1849512256

ISBN-13: 9781849512251

A jQuery plugin is just how to positioned your code right into a package,which makes it more uncomplicated to take care of your code and use throughout various tasks. whereas simple scripting is comparatively straightforward,writing plugins can depart humans scratching their heads. This publication takes you past the fundamentals of jQuery and lets you take complete benefit of jQuery's robust plugin structure to convey hugely interactive content material in your web site users.
The e-book comprises the entire details you must effectively writer your personal jQuery plugin with a specific specialise in the sensible element of layout and development.
it's going to additionally disguise a few info of genuine lifestyles plugins and clarify their functioning to achieve a greater realizing of the general idea of plugin improvement and jQuery plugin architecture.
varied subject matters relating to plugin improvement are discussed,and you are going to easy methods to improve many varieties of add-ons,ranging from media plugins (such as slideshows,video and audio controls, etc) to varied utilities (image pre-loading,handling cookies) and use and purposes of jQuery results and animations (sliding, fading,combined animations) to finally reveal how all of those plugins might be merged and provides delivery to a brand new, extra complex,and multi goal script that turns out to be useful in loads of situations.

What you'll research from this book

  • Create various forms of typical jQuery plugins
  • Design a regular improvement development to use to your whole plugins to hurry up the process
  • Build plugins that improve viewer's multimedia adventure in your website
  • Learn easy methods to construct beautiful animation plugins that express results like fading and sliding
  • Discover how jQuery handles 3rd celebration plugins and the way a few parts of code can(not) be accessed
  • Implement time saving layout styles and most sensible practices to optimize your plugins
  • Learn the fine details of a few of the most well-liked plugins and the way they really paintings to do what they do
  • Learn through an in-depth sensible approach,providing you with an easy, but effective,structure to lessen efforts and acquire larger effects quickly

This booklet takes a beginner's consultant approach,giving you step by step directions for making a variety of assorted jQuery plugins overlaying many of the universal matters one may possibly stumble upon. it is a functional guide,which will make it easier to layout and construct the main general jQuery plugins

Show description

Read or Download jQuery Plugin Development Beginner's Guide PDF

Best javascript books

Download e-book for iPad: Professional Perl Programming by Peter Wainwright, Aldo Calpini, Arthur Corliss, Juan Julian

Perl is likely one of the most vital scripting languages in use at the present time. Open resource, freely on hand, moveable, flexible, and strong, robust and simple to exploit, Perl is the 1st selection for millions net builders. yet Perl is much greater than a scripting language for the net. Supported by way of a accomplished usual library and hundreds and hundreds of third-party libraries, Perl is an more and more well known selection for software programming.

Theo Peterson, Visit Amazon's Theo Petersen Page, search's Web development with Apache and Perl : [how to build PDF

Written for net builders and bosses who're contemplating possible choices to advertisement items, this consultant to Apache and Perl offers info and directions for development websites. standards for choosing an working approach and methods for configuring an internet server are brought, and a dialogue of Open resource databases and improvement instruments is incorporated.

Read e-book online Learn Javascript PDF

This introductory name in JavaScript ambitions probably the most well known programming languages for net improvement. The identify has a different method, utilizing construction blocks so readers have built an entire site through the tip of the name

Additional resources for jQuery Plugin Development Beginner's Guide

Sample text

45 ] Our First jQuery Plugin 3. In fact, looking at the hover documentation, we see the function can also take a second argument, that is, the pointer to a function to be executed when the mouse goes off the element. text(oldTxt); }); }); }; 4. The result is somewhat better now: the text is changed when we leave the pointer on the paragraph, and is changed again to its original form once the pointer is moved away. What just happened? We might be a little more satisfied with this evolution of our plugin, even though it's far from complete.

1. txtHover = function(options) { // the rest of the code // goes here }; 2. text(oldTxt); }); }); }; 3. There's still some trouble, though: what happens if we use the debug function outside the plugin file? We expect it not to be accessible or to be somehow unusable, as we have declared it inside the plugin file and it was intended for use inside the plugin only. If we try to put a sample call right after the "document ready" statement, we can see the function to be actually accessible from everywhere in the code.

If we had used two plugins with two different functions, and had chained them, we would have seen both effects, as normally expected. 3. css({ 'color': '#123' }); [ 33 ] Plugins Basics 4. We can now try to modify the script so the plugin does not return the jQuery object. This way we cannot chain methods, as, after the first call, the other methods don't have an object to operate on. To prevent our plugin from returning the jQuery object, removing the word return is, in this case, enough. The script will run correctly and prevents the jQuery object from being returned.

Download PDF sample

jQuery Plugin Development Beginner's Guide by Giulio Bai


by Christopher
4.0

Rated 4.83 of 5 – based on 13 votes