big-airline-13935
12/29/2021, 6:24 PMdetail.elt as documented at https://htmx.org/events/#htmx:beforeRequestgentle-notebook-11755
12/29/2021, 9:33 PMgentle-notebook-11755
12/29/2021, 9:34 PMgentle-notebook-11755
12/29/2021, 9:34 PMhtmx:afterRequest and htmx:sendAbort, not sure why.mysterious-toddler-20573
12/29/2021, 9:48 PMmysterious-toddler-20573
12/29/2021, 9:49 PMvalidated) and use hx-trigger to trigger on that new eventmysterious-toddler-20573
12/29/2021, 9:50 PMmysterious-toddler-20573
12/29/2021, 9:50 PMgentle-notebook-11755
12/29/2021, 9:55 PMmysterious-toddler-20573
12/29/2021, 9:55 PMgentle-notebook-11755
12/29/2021, 9:58 PM<form method = "post"
action = "contact-form/send"
accept-charset = "UTF-8"
novalidate
hx-boost = "false"
hx-post = "contact-form/send"
hx-indicator = ""
hx-push-url = "true"
hx-select = ".site-main"
hx-target = ".site-main"
> ... </form>
But I'm going to review elsewhere to make sure no other navigation is triggered.gentle-notebook-11755
12/29/2021, 9:58 PMgentle-notebook-11755
12/29/2021, 10:25 PMwhite-motorcycle-95262
12/29/2021, 10:25 PMmethod and action be specified on the form? I thought hx-post would take care of thatgentle-notebook-11755
12/29/2021, 10:28 PMgentle-notebook-11755
12/29/2021, 10:33 PMgentle-notebook-11755
12/29/2021, 10:34 PMhx-trigger and htmx-triggermysterious-toddler-20573
12/29/2021, 10:41 PMgentle-notebook-11755
12/29/2021, 10:43 PMwhite-motorcycle-95262
12/29/2021, 10:52 PMwhite-lion-11770
12/30/2021, 6:17 PMuser
12/30/2021, 6:47 PM<button _='on click fetch https://swapi.dev/api/planets/1/ with method:"GET" as JSON then put it into #planet.innerHTML'>
Get First Star Wars Planet
</button>
This is the error I get:user
12/30/2021, 6:49 PMgorgeous-ghost-95789
12/30/2021, 7:15 PMgorgeous-ghost-95789
12/30/2021, 7:16 PMlog it? Can you get at it if you say result[βnameβ]white-lion-11770
12/30/2021, 8:22 PMclass-tools isn't working for me? Am I using it wrong? Perhaps it cannot be used together with `hx-get`/`hx-target`?
html
<div class="navbar-nav me-auto" hx-ext="class-tools">
<div class="nav-link active"
hx-get="/overview"
hx-target="#main-content"
classes="toggle active"/>
Overview
</div>
<div class="nav-link"
hx-get="/monitoring"
hx-target="#main-content"
classes="toggle active"/>
Monitoring
</div>
</div>adamant-exabyte-92636
12/30/2021, 9:09 PMwhite-lion-11770
12/30/2021, 9:11 PMadamant-exabyte-92636
12/30/2021, 9:13 PMmysterious-toddler-20573
12/30/2021, 10:47 PM