JavaScript Jabber cover image

HTMX and InterCooler ft. Carson Gross - JSJ 513

JavaScript Jabber

00:00

Adding Scriptat to the H M X Library

You need to add scriptat into your h m l that actually loads the h m x library. These are just, let's call them custom attributes that you put on the regular h ml elements. And so by including this tag, now all the elements in your dam have disabilitied an with the server in a more advanced way than standard h tm o allows you to. The final attribute that i didn't want to mention is a h x target, which is another attribute. You can use h x target if you don't want to replace the current element that's issuing the request. We want to replace some other element in the u i then you can use h X target

Play episode from 15:44
Transcript

The AI-powered Podcast Player

Save insights by tapping your headphones, chat with episodes, discover the best highlights - and more!
App store bannerPlay store banner
Get the app