Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

data in spreadsheet sorted using php or spry dynamically

Engaged ,
Nov 12, 2009 Nov 12, 2009

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

TOPICS
Server side applications
529
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

LEGEND , Nov 13, 2009 Nov 13, 2009

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.

Translate
LEGEND ,
Nov 13, 2009 Nov 13, 2009

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Nov 13, 2009 Nov 13, 2009
LATEST

Thx David, that is what I was looking for.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines