PLAY PODCASTS
Htmx request headers: Hx-Target
Season 3 · Episode 3

Htmx request headers: Hx-Target

hx-pod

May 1, 20244m 27s

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

Let's your server know what the id is of the hx-target!
You need 2 things to send this request header:
1. Use the attribute: hx-target="some_id"
2. Use a DOM id as the target: some_id needs to be an id, not another css selector

Topics

htmx javascript programming laravel livewire minimalism coding html simplicity