Skip to content
The basics: hx-vals episode artwork

Feb 1, 2024 3 min

The basics: hx-vals

from hypermedia radio Hosted by Lazarus

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("zipcode").value}'> Click for weather in one static location </button> OR <button hx-get="/my/weather/data" hx-trigger="click" hx-vals='js:{location: someJavascriptCalculationFunction()}'> Click for weather in one static location </button>

Episode details come from the podcast's RSS feed.

Embed this episode

Ready to play

The basics: hx-vals

0:00 3:58

No transcript yet.

Requests help us decide what to transcribe next.

Frequently asked questions

How long is this episode of hypermedia radio?

This episode is 3 minutes long.

When was this hypermedia radio episode published?

This episode was published on February 1, 2024.

Is there a transcript available for this episode?

Yes, a full transcript is available for this episode. You can read the complete transcript on the episode page.

Can I download this hypermedia radio episode?

Yes. Use the download control on the episode player to save the publisher-provided media file.