I’m dynamically generating a table, as well as the column headers.
How do I make the columns clickable (NO JavaScript!), so that when they’re clicked, they add a sort=columnNameHere entry to the query, and reload the current page with that query?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It would be helpful to know your server-side language, but since you didn’t include that, you’ll want the code to output html as follows…
on the server you need to make sure you get the sort variable from the collection of get variables and apply it to the source query. In pseudocode, this would be something like: