PacktLib: jQuery Plugin Development Beginner's Guide

jQuery 1.4 Plugin Development

Credits

About the Author

About the Reviewers

Preface

What is jQuery About?

A little background

jQuery: "the write less, do more JavaScript library"

How jQuery works

Time for action — writing a basic jQuery script

Time for action — callback and functions

Extending jQuery: Plugins

Plugins basics

Suggested reading that could help greatly

Summary

Plugins Basics

Using plugins

Time for action — looking for a plugin

Time for action — setting up our own page

Structure of a plugin

Time for action — types of plugins: Function plugins

Time for action — types of plugins: Messing with methods

Time for action — chaining

Basic plugins examples

A few key things to remember

Summary

Our First jQuery Plugin

Defining our own default plugin structure

Setting the basics for our first plugin

Time for action — our first plugin, Part I

Getting a step farther

Time for action — our first plugin, Part II: Hovering

Dealing with options

Time for action — our first plugin, Part III: Options

Using functions inside the plugin

Time for action — our first plugin, Part IV: Functions

Closures: Making functions private

Time for action — our first plugin, Part V: Closures

Summary

Media Plugins: Images Plugins

Plugin overview

Handling images

Time for action — showing images

Time for action — one step more

Centering things

Time for action — turning theory into code

Putting it all together

Time for action — the final step

Summary

Media Plugins: Audio Plugins

Plugin overview

Handling audio files

The player

Time for action — creating the Flash player

Putting the plugin together

Time for action — creating the plugin

Styling and multiple players

Time for action — adding support for multiple players

Time for action — adding some style

Summary

Media Plugins: Video Plugins

Plugin overview

Handling video files

Embedding YouTube videos

Time for action — creating your first video plugin

Adding preview thumbnails and the pop-up feel

Time for action — adding previews

Time for action — creating a pop up

Summary

Form Plugins

Form plugins in general

Validating forms

Time for action — creating the form check plugin

Auto-growing textareas

Time for action — creating the autogrow plugin

Summary

User Interface Plugins

Positioning

Time for action — understanding mouse movement events

Setting equal heights

Time for action — setting the same height

Other examples of user interface plugins

Summary

User Interface Plugins: Tooltip Plugins

Tooltip plugins in general

Positioning the tooltip

Custom jQuery selectors

Time for action — creating custom jQuery selectors

Merging pieces together

Time for action — creating a tooltip plugin

Summary

User Interface Plugins: Menu and Navigation Plugins

Splitting the work in two

Time for action — creating and styling the menu

Time for action — adding a fading effect

Creating the plugin

Time for action — creating the plugin

Summary

Animation Plugins

Sliding

Time for action — creating sliding panes

Fading

Time for action — creating the plugin

The animate() method

Time for action — creating your first animation

Summary

Utility Plugins

Generating tag clouds

Time for action creating a tag cloud plugin

Cookie handling

Time for action — creating a cookie plugin

Summary

Top jQuery Plugins

Typesearch

Time for action — obtaining an OSX-like search bar with the Typesearch plugin

JSON plugin

Time for action — encoding and decoding JSON strings

notNow

Time for action — postponing a function using the notNow plugin

Webcam

Time for action — setting up and using the webcam plugin

Quovolver

Time for action — putting Quovolver to work

ScrollToElement

Time for action — different ways of scrolling

PassRoids

Time for action — using the plugin

Virtual Keyboard Widget

Time for action — using the virtual keyboard plugin

Sliding Doors

Time for action — creating a sliding door

idleTimer

Time for action — timing idle users

Summary

Tools, reference, and final recommendations

Tools, reference, and final recommendations

Tools, reference, and final recommendations

Tools, reference, and final recommendations

Tools, reference, and final recommendations

Tools, reference, and final recommendations

Pop Quiz Answers

Pop Quiz Answers

Pop Quiz Answers

Pop Quiz Answers

Pop Quiz Answers

Pop Quiz Answers

Pop Quiz Answers

Pop Quiz Answers

Pop Quiz Answers

Pop Quiz Answers

Pop Quiz Answers

Pop Quiz Answers

Pop Quiz Answers

Pop Quiz Answers