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 10

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 10: Dimensions Plug-In

The symbols we believe in
Sometimes turn inside out
Reshaping each dimension
We're so sure about
    —Devo, "Plain Truth"

The Dimensions plug-in, co-authored by Paul Bakaus and Brandon Aaron, helps bridge the gap between the CSS box model and developers' need to accurately measure the height and the width of elements in a document. It also measures with pixel accuracy the top and left offsets of elements, no matter where they are found on the page. In this chapter, we'll explore this plug-in's various methods and discuss their options.

Chapter 10: Dimensions Plug-In

  • Size Methods
    • .height()
    • .width()
    • .innerHeight()
    • .innerWidth()
    • .outerHeight()
    • .outerWidth()
  • Position Methods
    • scrollTop()
    • .scrollTop(value)
    • .scrollLeft()
    • .scrollLeft(value)
    • .offset()
    • .position()

 

 

   

 

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