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 7

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 7: Table Manipulation

Let 'em wear gaudy colors
Or avoid display
    —Devo, "Wiggly World"

In the first six chapters, we explored the jQuery library in a series of tutorials that focused on each jQuery component and used examples as a way to see those components in action. In Chapters 7 through 9 we invert the process; we'll begin with the examples and see how we can use jQuery methods to achieve them.

Here we will use an online bookstore as our model website, but the techniques we cook up can be applied to a wide variety of other sites as well, from weblogs to portfolios, from market-facing business sites to corporate intranets. Chapters 7 and 8 focus on two common elements of most sites—tables and forms—while Chapter 9 examines a couple of ways to visually enhance sets of information using animated shufflers and rotators.

Chapter 7: Table Manipulation

  • Sorting
    • Server-Side Sorting
      • Preventing Page Refreshes
    • JavaScript Sorting
      • Row Grouping Tags
      • Basic Alphabetical Sorting
      • The Power of Plug-ins
      • Performance Concerns
      • Finessing the Sort Keys
      • Sorting Other Types of Data
      • Column Highlighting
      • Alternating Sort Directions
  • Pagination
    • Server-Side Pagination
      • Sorting and Paging Go Together
    • JavaScript Pagination
      • Displaying the Pager
      • Enabling the Pager Buttons
      • Marking the Current Page
      • Paging with Sorting
  • The Finished Code
  • Advanced Row Striping
    • Three-color Alternating Pattern
    • Alternating Triplets
  • Row Highlighting
  • Tooltips
  • Collapsing and Expanding
  • Filtering
    • Filter Options
      • Collecting Filter Options from Content
      • Reversing the Filters
    • Interacting with Other Code
      • Row Striping
      • Expanding and Collapsing
  • The Finished Code
  • 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