SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Enthusiast
    Join Date
    Sep 2002
    Posts
    44
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Dynamically update data

    Is there a way to update / sort data depending on the selection the user picked.
    For instance, i have two radio buttons.. sort by name, sort by date. The data is already available on the page (using php to get data defalut to sort by name). How can i update the data dynamically if the user selects sort by data. I would prefer not having to query the data again using php.

    thanks.

  2. #2
    SitePoint Addict
    Join Date
    May 2000
    Posts
    313
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I suspect you would have to store the data in a array and then sort the array and re-display the data. You would probably have to use some type of container such as a div or span to hold the displayed data so that you would not have to reload the page.


Bookmarks

Posting Permissions

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