2015
Lynda
Joe Chellman
1:22
English
If you've ever written any jQuery, you should consider turning your code into a plugin. Plugins are easy to write and reuse, and are a great way to give back to the jQuery community.
This course shows how to take some real-world examples of jQuery interactivity, written as regular filters or code, and quickly convert them into plugins. Author Joe Chellman also demonstrates how to make sure your plugin executes properly, make plugins configurable, and incorporate advanced functionality using JavaScript. Start watching and learn how to take the jQuery you've developed and package it into plugins everyone can use.
Introduction
Welcome
What you should know
How to use the exercise files
How to use the challenges
1. Foundations of jQuery Plugins
The current jQuery landscape
Reviewing jQuery core concepts
Understanding how jQuery plugins are used
Finding jQuery plugins
2. Writing Your First Plugin
Writing a basic jQuery filter
Converting a filter into a plugin in one easy step
Using selectors and chaining to make the plugin work properly
Challenge: Writing a new, useful plugin
Solution: Writing a new, useful plugin
3. Diving Deeper with a Complex Plugin
Writing the code: Always the first step
Converting the code into a plugin
Making the plugin configurable with options
Determining and adding appearance options
Grouping related options for better usability
Protecting your plugin by validating user input
Challenge: An AJAX-enabled ads plugin
Solution: An AJAX-enabled ads plugin
4. Advanced Topics
Adding more-powerful options using functions
Responding to events using functions
Distributing your plugin to the world
Conclusion
Wrapping up
Download File Size:204.71 MB