?
Solved

create a page where you can sort by different fields...

Posted on 2005-03-02
2
Medium Priority
?
165 Views
Last Modified: 2010-04-06
Hello Experts!

How do you make a page where you can sort by different fields....?

Kinda like ebay's site where you can sort by "price low to high" and all that....

-neo    
0
Comment
Question by:neomage23
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 32

Accepted Solution

by:
Batalf earned 500 total points
ID: 13444547
This is usually done on the server by ordering the data from the query based on the column you clicked on. You click on a column header. The server picks up which column you clicked on and query the database again but with a different "order by" clause. Then the server outputs the data in the new order.

It could also be done by Javascript as shown in this article:

http://webfx.eae.net/dhtml/sortabletable/sortabletable.html

Not sure how browser compatible it is.
0
 
LVL 6

Author Comment

by:neomage23
ID: 13444670
Thanks man. that help
0

Featured Post

Get real performance insights from real users

Key features:
- Total Pages Views and Load times
- Top Pages Viewed and Load Times
- Real Time Site Page Build Performance
- Users’ Browser and Platform Performance
- Geographic User Breakdown
- And more

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Browsers only know CSS so your awesome SASS code needs to be translated into normal CSS. Here I'll try to explain what you should aim for in order to take full advantage of SASS.
JavaScript has plenty of pieces of code people often just copy/paste from somewhere but never quite fully understand. Self-Executing functions are just one good example that I'll try to demystify here.
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
The viewer will learn how to dynamically set the form action using jQuery.
Suggested Courses

765 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question