hx-pod

The basics: hx-vals


Listen Later

How do you feel about setting your request values right there inline?

STATIC
              hx-trigger="click"
              hx-vals='{"location": "01245"}'>
   Click for weather in one static location

DYNAMIC
              hx-trigger="click"
              hx-vals='js:{location: document.getElementById("zipcode").value}'>
   Click for weather in one static location

OR
              hx-trigger="click"
              hx-vals='js:{location: someJavascriptCalculationFunction()}'>
   Click for weather in one static location

...more
View all episodesView all episodes
Download on the App Store

hx-podBy Lazarus

  • 5
  • 5
  • 5
  • 5
  • 5

5

6 ratings


More shows like hx-pod

View all
Odd Lots by Bloomberg

Odd Lots

1,944 Listeners

Talk Python To Me by Michael Kennedy

Talk Python To Me

584 Listeners

Django Chat by William Vincent and Carlton Gibson

Django Chat

75 Listeners

Notes On Work - by Caleb Porzio by Caleb Porzio

Notes On Work - by Caleb Porzio

18 Listeners

The Rest Is History by Goalhanger

The Rest Is History

15,518 Listeners

Mostly Technical by Ian Landsman and Aaron Francis

Mostly Technical

26 Listeners

Talking Businessly by Daniel Coulbourne & John Drexler

Talking Businessly

2 Listeners

Datastar – The hypermedia framework. by Datastar

Datastar – The hypermedia framework.

0 Listeners