HTMX is a powerful JavaScript library that allows you to create dynamic web applications with minimal JavaScript. It enables you to make AJAX requests, swap HTML content, and handle events directly in your HTML attributes. I've been using HTMX for about two…
Just a quick one, I had a need in a work project for the ability to 'clear' URL parameters from a URL. This is useful when you have a URL with multiple parameters, and you want to remove one or more of them (for example for a search filter). The Problem My…
So in what's becoming a series, in a work project I wanted to add the ability for a partial to auto-update on a given timescale. Here's how I did it using Alpine.js and HTMX. Requirements So I wanted this to be reusable; so it should be simple and…
On a work project I've been using and abusing HTMX to build an admin UI. As part of this I'm using the lovely SweetAlert2 Javascript library for my confirmation dialogs. It works great but I also wanted to use them to replace my HTMX loading indicators. This…
HTMX is a great library for making your web applications more dynamic and responsive. In this post, I'll show you how to use HTMX to show a toast notification and swap content on the page. One of the 'limitations' in standard HTMX (i.e., not OOB swaps) is that…