PLAY PODCASTS
The basics: hx-swap-oob
Season 1 · Episode 6

The basics: hx-swap-oob

hx-pod

January 22, 20245m 41s

Audio is streamed directly from the publisher (media.transistor.fm) as published in their RSS feed. Play Podcasts does not host this file. Rights-holders can request removal through the copyright & takedown page.

Show Notes

This is a new idea: let your response decide its own target(s)! 

<div id="my-update-div" hx-swap-oob="true">Updated html</div>

<div id="my-update-div-2" hx-swap-oob="true">More updated html elsewhere on the page</div>

Topics

htmx javascript programming laravel livewire minimalism coding html simplicity