Lazarus
hx-pod
Join me while I learn about web fundamentals and talk at you about itTwitter: @all__hype
Visita il sito del podcast e sostieni chi lo crea: twitter.com
Dove ascoltare?
I podcast nell'app Replaio Radio In arrivoI podcast stanno per arrivare nell'app. Installala ora e scopri per primo un modo tutto nuovo di vivere i podcast
Episodi
Advanced htmx: hx-encoding 02.04.2024 5:32
An amazingly simple file uploading form *with a progress bar* using htmx: <form id='form' hx-encoding='multipart/form-data' hx-post='/[where-you-want-post-it]' hx-target='#target-div'> <input type="hidden" name="_token" value="" /> <input type='file' name='file'> <button> Upload </button> <progress id='progress' value='...
Advanced htmx: hx-select-oob 29.03.2024 8:38
What if you could "select" snippets out of your response and send them to anywhere on the page ("out-of-band") of the target? that's hx-select-oob Server traffic cop: hx-swap-oob Client traffic cop: hx-select-oob
The css zen garden was a beautiful lie 25.03.2024 22:58
Let's talk big ideas like Locality of Behavior vs. Separation of Concerns by relentlessly attacking one of the best websites ever created
Advanced htmx: hx-request 23.03.2024 5:27
Set the outer layer of settings of your request with THESE THREE OPTIONS
Advanced htmx: hx-disable 19.03.2024 5:11
Question: Do you want your users in the comment section to write htmx that runs on your site? If the answer is yes, please ignore this episode.
Advanced htmx: hx-history 15.03.2024 4:58
What if you don't want your page kept into the browser history local storage?
What is htmx good for? 13.03.2024 24:39
This is a somewhat open thought process looking at the question I see online: what is htmx good for? Mentioned in the episode: the htmx movies example from Andrew Rhyand: https://htmx.andrewrhyand.com/ A great looking page with smooth animations and educational htmx content on it.
Advanced htmx: hx-validate 10.03.2024 8:52
Your browser has built in types and validation on inputs in a form. But what happens when you use inputs without a form?? Note: I accidentally posted an incomplete episode at first, if you dont hear the end, try to re-download!
Advanced htmx: hx-headers 06.03.2024 5:05
Every request has secret hidden headers. But what if you wanted to make your own? https://htmx.org/attributes/hx-headers/
Celebrate your little victories 04.03.2024 13:53
When you make your life easier, that's a win.
Advanced htmx: hx-sync 28.02.2024 10:54
Having any weird async ajax request issues? htmx got yer back 🤜 🤛
Advanced htmx: hx-push-url and hx-replace-url 24.02.2024 9:46
Push your ajax route to the url bar! Now you've got access to the back button again. .. but what happens when you refresh? Work with the browser history on any htmx request with hx-push-url and hx-replace-url. PUSH it to the Browser history stack: hx-get="/account/details" hx-push-url="true" REPLACE the current browser history stack: hx-get="/account/details" hx-replace-url="true"
Brain-coding an htmx to-do app V2 - NO MUSIC 22.02.2024 30:37
Per listener request: Same episode as last, but without the soundtrack! Keeping the other up for posterity's sake.
Brain-coding an htmx to-do app 21.02.2024 30:55
Every developer should have their own custom to-do app. Join me for my journey building this simple app in my head using htmx
The basics: Season 1 recap, grouping the attributes 17.02.2024 12:12
Every attribute so far and where they fit together.
The basics: hx-select 16.02.2024 7:46
What if.. you wanted just a part of the html from the response? In a perfect world, you could just use a simple css selector to get only what you need and filter everything else out. Well, welcome to the perfect world -- hx-select style.
A conversation with chat gpt, aka the htmx shillbot 2000 12.02.2024 27:38
NOTE: This is some Star Trek computer shit. You gotta hear it to believe it BIG interview today. We delve into where htmx fits in the broader dev world, how we might build a calendar with htmx, and even how to build and publish our own hx-load-class attribute.
The basics: hx-preserve 09.02.2024 2:32
Updating a chunk of the DOM is easy -- but what if you wanted to leave one element alone? <div id="leave-me-alone" hx-preserve>Content preserved</div> Content will NOT be swapped out in the request, as long as the id in the request data matches. https://htmx.org/attributes/hx-preserve/
The basics: hx-indicator and the special htmx loading classes 06.02.2024 7:54
Do you ever want to let the user know you are loading something? Of course you do. Just add the htmx-indicator class to any element (loading div, svg, gif), and the parent requests will make it show up. We discuss the magic you get for free in htmx and the way to customize it!
The basics: hx-params 03.02.2024 3:48
ok, you are submitting a form.. but what if you don't want to submit the whole thing? Use what only i call "the mysql selector of htmx" hx-params="first_name, last_name, state" or what if you wanted to exclude a field? hx-params="not secret_field"
The basics: hx-vals 01.02.2024 3:58
How do you feel about setting your request values right there inline? STATIC <button hx-get="/my/weather/data" hx-trigger="click" hx-vals='{"location": "01245"}' > Click for weather in one static location </button> DYNAMIC <button hx-get="/my/weather/data" hx-trigger="click" hx-vals='js:{location: document.getElementById("zi...
Bonus: The Single Source of Truth 30.01.2024 6:44
Your built-in advantage of building html on the server: everything important is already there. Here are the two server/client mental model discussions referenced in the audio: 1. Primagean "The truth about HTMX" Front end backend s=discussion starts around 12m https://www.youtube.com/watch?v=2hMrk7A8Wf0 2. Mostly Technical Podcast "High Floor vs. High ceiling" https://mostlytechnical.com/episodes/...
The basics: hx-boost 28.01.2024 6:47
How can you change your entire site to be faster and snappier with just one attribute? How can you recreate the entire libraries of turbolinks and pjax in a single line? How can you make your entire site essentially an SPA? <body hx-boost="true">
Bonus: HOWL (Hypermedia On Whatever you'd Like) 25.01.2024 7:39
Or, "How I learned to stop worrying and stack this stack on all other stacks." Essay on HOWL from htmx.org: https://htmx.org/essays/hypermedia-on-whatever-youd-like/
Podcast simili
Replaio non è un editore di podcast; i nomi dei programmi, le copertine e l'audio appartengono ai rispettivi autori e vengono distribuiti tramite feed RSS pubblici