|
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 |
|
|
|
|