jQuery Reference Guide: A Comprehensive Exploration of the Popular JavaScript Library
www.PACKTPUB.com  FREE ONLINE EDITION: Read full chapters online, download free samples from the book and more...
Book Contents Index > Chapter 9

Preface

1: Anatomy of a jQuery Script Free Chapter
2: Selector Expressions
3: DOM Traversal Methods
4: DOM Manipulation Methods
5: Event Methods
6: Effect Methods
7: AJAX Methods
8:
Miscellaneous Methods  
9: Plug-In API
10:
Dimensions Plug-In
11: Form Plug-In


Appendix A: Online Resources

Appendix B: Development Tools


Index

Latest Updates

Free Chapter:
Chapter 1: Anatomy of a jQuery Script [713 KB PDF]

Contact us

 

 

 

 

 

Chapter 9: Plug-In API

I do two at a time now
I've developed a technique
    —Devo, "Fräulein"

Whenever a task is to be performed two or more times, it is a good idea to apply the DRY principle—Don't Repeat Yourself. To facilitate this, jQuery provides several tools for developers that go beyond simple iteration and function creation. Plug-in development is a technique that proves rewarding time and time again.

In this chapter, we'll take a brief look at the basics of using another developer's plug-in, and then delve into the various ways of extending jQuery with plug-ins we define ourselves.

Chapter 9: Plug-In API

  • Using a Plug-in
  • Developing a Plug-in
    • Object Method
    • Global Function
    • Selector Expression
    • Easing Style
  • Example: Maintaining Multiple Event Logs
  • Summary

 

 

   

 

Paperback 225 pages
Released: July 2007
ISBN: 1847193811
ISBN 13:
978-1-847193-81-0

     

 




View the book details
on PacktPub.com

 


 
  This website is owned and maintained by Packt Publishing Ltd, 2007. All rights reserved. Terms and Conditions