Learning jQuery: Better Interaction Design and Web Development with Simple JavaScript Techniques
www.PACKTPUB.com  FREE ONLINE EDITION: Read full chapters online, download free samples from the book and more...
Book Contents Index > Chapter 10

Preface

1: Getting Started
2: Selectors—How to Get Anything You Want
3: Events—How to Pull the Trigger
4: Effects—How to Add Flair to Your Actions
5: DOM Manipulation—How to Change Your Page on Command
6: AJAX—How to Make Your Site Buzzword-Compliant
7: Table Manipulation Free Chapter
8:
Forms with Function  
9: Shufflers and Rotators
10:
Plug-ins

Appendix A: Online Resources

Appendix B: Development Tools
Appendix C: JavaScript Closures

Index

Latest Updates

Free Chapter:
Chapter 7: Table Manipulation [1.31 MB PDF]

Contact us

Chapter 10: Plug-ins

Like a plug without a socket
I'm just waitin' 'round for you
    —Devo, "Don't You Know"

Throughout this book we have examined many of the ways in which the jQuery library can be used to accomplish a wide variety of tasks. Yet one aspect that has remained relatively unexplored is jQuery's extensibility. As powerful as the library is at its core, its elegant plug-in architecture has allowed developers to extend jQuery, making it an even more feature-rich library.

Although jQuery has been available for less than two years, it already supports over a hundred plug-ins—from small selector helpers to full-scale, user-interface widgets. In this chapter we'll take a brief look at three popular jQuery plug-ins and then create a few of our own.

Chapter 10: Plug-ins

  • How to Use a Plug-in
  • Popular Plug-Ins
    • Dimensions
      • Height and Width
      • ScrollTop and ScrollLeft
      • Offset
    • Form
      • Tips & Tricks
    • Interface
      • Animate
      • Sortables
  • Finding Plug-in Documentation
  • Developing a Plug-in
    • Adding New Global Functions
      • Adding Multiple Functions
      • What's the Point?
    • Adding jQuery Object Methods
      • Object Method Context
      • Method Chaining
    • DOM Traversal Methods
      • Method Parameters
    • Adding New Shortcut Methods
    • Maintaining Multiple Event Logs
    • Adding a Selector Expression
    • Creating an Easing Style
      • Easing Function Parameters
      • Multi-Part Easing Styles
    • How to Be a Good Citizen
      • Naming Conventions
      • Use of the $ Alias
      • Method Interfaces
      • Documentation Style
  • Summary

 

   

 

Paperback 380 pages
Released: July 2007
ISBN: 1847192505
ISBN 13:
978-1-847192-50-9

     

 




View the book details
on PacktPub.com

 


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