walterbyrd a écrit :
On Aug 28, 1:31 pm, Gerardo Herzig <gher...@fmed.uba.arwrote:
>walterbyrd wrote:
>The one who make that table sorteable is AJAX. Not php. The php part is
kind of trivial (so it would be `trivial' in python too). It just reads
some data and format it in an html table.
Thank you, that is great to know. What if there were 1000 records, and
the table was paginated?
I suppose, ajax would sort the front end,
s/ajax/javascript/
You don't need ajax to sort a table, it's pure javascript dom
manipulation (and there are quite a lot of working, correctly written
and well-tested scripts doing so).
In your above use case (sortable, paginated, inline-editable grid), ajax
would be used to:
- retrieve XXX records from the back-end (either as an html fragment or
in json) via a GET request
- submit modifications (via a POST request)
All the rest is either usual javascript or usual (backend) web programming.