Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    Regular Coder
    Join Date
    Feb 2003
    Location
    Brooklyn, New York
    Posts
    149
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Is there a way to keep a paged alphabetized?

    I have to make a page for club contacts. Is there a way to keep the members info alphabetized even as I add new members? Or will I have to keep doing it manually? Thanks.
    BrianNY/Rookie

  • #2
    New Coder
    Join Date
    Apr 2006
    Location
    Joussard, Alberta
    Posts
    89
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Javascript can be used to sort html tables. I haven't got that far in my own understanding of javascript, but I suspect if you googled "javascript table sort" you'd come up with some useful examples.

    Assuming of course your contact info is stored in a table...

  • #3
    Master Coder felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, Australia
    Posts
    6,590
    Thanks
    0
    Thanked 644 Times in 634 Posts
    If you do it with Javascript then anyone with Javascript disabled will see them in the wrong order. You would probably do better to use a server side scripting language to sort the entries before sending the page.
    Stephen
    Learn Modern JavaScript - http://javascriptexample.net/
    Helping others to solve their computer problem at http://www.felgall.com/

    Don't forget to start your JavaScript code with "use strict"; which makes it easier to find errors in your code.

  • #4
    New Coder
    Join Date
    Apr 2006
    Location
    Joussard, Alberta
    Posts
    89
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Hadn't thought of that.
    Thanks felgall.

    I keep learning here


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •