HTML list / Dynamic
- Started
- Last post
- 4 Responses
- Atkinson
How do I make a list to go on a page that can be clicked to show alphabetically or clicked to show chronologically?
- Atkinson0
Perhaps dynamic is the wrong word, maybe I mean interactive?
- melq0
If you need to sort the same line items by two different fields, it would seem that you would need to use a table versus a list. Then you can use JavaScript or some other scripting language to sort ascending, descending, alpha, numeric, etc.
- quite nice... probably easier than the SQL approach I wrote about below...vaxorcist
- vaxorcist0
jquery/ajax, and/or iframes, but note there is some back-end code usually used to re-order the data....SQL will look somewhat like
select * from list order by dateStamp
or
select * from list order byor you can just run both queries and cache the results in 2 different divs or iframes, thus saving database hits from users who click alot...
- Atkinson0
http://www.caferoyalbooks.com/ca…
did it in the end, used that js plugin above