News for hackers. Stuff that matters.
Re:jQuery v4.0 Beta by midasuni on Wednesday February 07, 2024 @02:14AM (#39285510)
Yesterday I wrote a custom page which dumped out a table for some investigation. I threw jquery and a tablesorter plug-in. Without JS you get the table, but with you can easily sort and filter. Took about 2 minutes to add the optional filter. The backend is bash of course.
Re:jQuery v4.0 Beta by sireat on Wednesday February 07, 2024 @03:02AM (#39285816)
For tables my favorite jQuery plug-in is: https://datatables.net/

Have a page with some tables? A few lines of jQuery and you have search sorting etc. It can be customized but defaults are fine.

This is how abstractions and progressive enhancement should be done.

Re:jQuery v4.0 Beta by midasuni on Wednesday February 07, 2024 @03:25AM (#39285959)
I’m not even sure what I used, it’s the same 5 lines I’ve used for years. Boom bang and on to the next problem.

For every unicorn saas webapp $300k a year developers are writing there’s a thousand small pages. If you’re building a house you aren’t going to use a Swiss Army knife, but if you’re camping out for a couple of days you aren’t going to take a van full of power tools.

Re:jQuery v4.0 Beta by anakaine on Wednesday February 07, 2024 @03:53AM (#39286131)
A couple.of well selected power tools are certainly helpful, however. A battery blower to start the fire, a small electric chainsaw for any wood cutting depending on the area and what you take in, and a portable fan if you're in a hot climate. Sometimes a couple of selected power tools are very helpful.
Re:jQuery v4.0 Beta by ryanisnan on Thursday February 08, 2024 @01:55AM (#39299080)
Weird analogy. I’ve camped my whole life, never once brought a power tool.
Re:jQuery v4.0 Beta by GrumpyNl on Wednesday February 07, 2024 @04:11AM (#39286264)
Big plus is, it also gives yo the option to export the tables to pdf and other file formats.
Re:jQuery v4.0 Beta by mobilemidget on Wednesday February 07, 2024 @12:20PM (#39291250)
I personally prefer https://sortablejs.github.io/Sortable/ over datatables.net

Though both do what I typically need them to do, customising datatables.net takes me a bit more time though