Copy link to clipboard
Copied
Good evening,
I have a spreadsheet 5 columns, 10 rows. I want the user to be able to click on one of the headings and then it be sorted as decending order. Do I do this with php or spry? And can you advise me how this is done, web site link or tutorials,thx
PHP is a server-side language, so the page would need to be reloaded from the server each time the user wanted to sort the data. The better way is to use JavaScript, which works in the browser. You can do this with a Spry data set or with many other JavaScript solutions. See, for example, http://www.kryogenix.org/code/browser/sorttable/. Just do a Google search for "sort table columns JavaScript" and you'll find lots of results.
Copy link to clipboard
Copied
PHP is a server-side language, so the page would need to be reloaded from the server each time the user wanted to sort the data. The better way is to use JavaScript, which works in the browser. You can do this with a Spry data set or with many other JavaScript solutions. See, for example, http://www.kryogenix.org/code/browser/sorttable/. Just do a Google search for "sort table columns JavaScript" and you'll find lots of results.
Copy link to clipboard
Copied
Thx David, that is what I was looking for.
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more