Hi Doug
Point me at the code.
On 15/07/18 12:53, Doug Bell wrote:
Using DataTables would not be a quick switch: The data in the table is not
rendered in the markup. It's loaded with JavaScript, which means I have to do a
lot more than just call a single function.
Even the sorttable.js I'm now using requires me to call a function at the right
time. If it required any more than that, I'd've stopped and given up. I only
even thought it might work because the documentation said it used the DOM
elements, so I had hoped that it read the data from the DOM when the user
clicked the header (turns out that's not the case, and the docs said I had to
call a single function to make it sortable again).
It would likely take as much time to add DataTables to this page as it would to
rewrite this page to use Mojolicious (which would then render the data in the
markup, and then adding DataTables would take one line of JS).
If anyone is interested in doing either of these things, I can help point them
to the places they would need to change. But for now, I've got to move on to
other things.
Doug Bell
d...@preaction.me
On Jul 14, 2018, at 8:10 PM, Ron Savage <r...@savage.net.au> wrote:
Hi Doug
I'd strongly suggest a quick switch from sorttable to the much more
sophisticated yet very simple datatables: https://datatables.net/.
On 15/07/18 07:42, Doug Bell wrote:
Okay, this is added now (slightly less than one year later). It's not perfect,
sometimes the sorting is slightly inaccurate, and it doesn't seem to let me
sort descending, but it'll work until the page around it can be made a bit
better.
Doug Bell
d...@preaction.me
On Jul 27, 2017, at 6:42 AM, David Cantrell <da...@cantrell.org.uk> wrote:
It would be handy if the columns in the table here:
http://www.cpantesters.org/distro/N/Number-Phone.html#Number-Phone-3.4001_02
were sortable. I use this JS library for something similar on my own
webshite. It's dead simple and Just Works with minimal effort:
https://www.kryogenix.org/code/browser/sorttable/
--
David Cantrell | top google result for "internet beard fetish club"
Planckton: n, the smallest possible living thing
--
Ron Savage - savage.net.au
--
Ron Savage - savage.net.au