Re: Teeny-tiny usability tweak for website

[email protected] (Doug Bell)
Newsgroups perl.cpan.testers.discuss
Message-ID <[email protected]>
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
[email protected]



> On Jul 14, 2018, at 8:10 PM, Ron Savage <[email protected]> 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
>> [email protected]
>>> On Jul 27, 2017, at 6:42 AM, David Cantrell <[email protected]> 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
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEE05l/4Z4+wsRVWe5G+fbjUgnpGMYFAltKtz8ACgkQ+fbjUgnp
GMZ6CxAAtC2o2dek/gbYS9kgWIknkPLkYPHJGL304ZZuraYrNgalw+WeuAOqWJeL
GDC5tcCrB7t++F5IW4LUt4i6uyeg678qddWhT7qMzJEtoNwM68amMpLJpfQIeaYa
0BTdl5UdwGlgA4Ef7FhrrGbyuZLyeGPaIoPsyZWnp51f+z8BHbJdIX50y9sTRQKk
kNnqpnKsDhPeRD0nBETjmRxgMA4YkmXsn/0+Zmg46xTjtTkmnVkCXslyu0a7NuhK
5+idGNovimOsC1F9JRf/X/ToszYr8XmOG7Tdy/ovTLCcwPINVicq+TaxQgc1amK1
0vsCxe1SajMPejO9P5Dhyej2Y9skGL1SEbLgATDf4vtf3MgvqpLnLlt2vmhTLfJu
JUnFwkKNU2rFvBREwY/pVM0rvCVjyQ2zqU28NehAgkv/iasf6xfCGnf48WXek9aP
s5mfZSq+pI+eVkoY14ByBNpqdHsBiWPuiE2rzfdEG6N8EeRHKWjg/rBgs7zVnMMc
npF17XNpTPiqxFsqmA+NapCnmIovrIRyH9K30875+3Pw/va2ysF+f9IlwwU/U7Jb
EkhQspyik5JEG3ie0YQEAGEVm1daIKE6zuAwynQAfyqBdb/NSpmVveduYyaoiLys
MYrh3WSmACZujj9EhZkEVhdokwZYLeTpmJQGsYEgI3EODsPXKMQ=
=97G/
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.