flaky-energy-47039
01/07/2023, 12:34 PMflaky-energy-47039
01/07/2023, 12:35 PMadventurous-ocean-93733
01/07/2023, 1:24 PMhx-include
is a css selector for a form element. Maybe you are looking for hx-vals
https://htmx.org/attributes/hx-vals/flaky-energy-47039
01/07/2023, 1:57 PMflaky-energy-47039
01/07/2023, 2:08 PMflaky-energy-47039
01/07/2023, 2:15 PMflaky-energy-47039
01/07/2023, 2:32 PMadventurous-ocean-93733
01/07/2023, 2:45 PMadventurous-ocean-93733
01/07/2023, 2:49 PMjs:
as per example at https://htmx.org/attributes/hx-vals/flaky-energy-47039
01/07/2023, 4:06 PMflaky-energy-47039
01/07/2023, 4:06 PMrich-television-50179
01/08/2023, 12:39 AMbland-coat-6833
01/08/2023, 9:21 AMrefined-waiter-90422
01/08/2023, 11:47 AMsalmon-oil-67352
01/08/2023, 12:31 PMsalmon-oil-67352
01/08/2023, 12:39 PMhx-swap="outerHTML show:#body-div:top"
salmon-oil-67352
01/08/2023, 1:37 PM<body hx-boost="true">
. The links look like this: <a href="/orders" hx-target="#main_content">
Whenever i click a link, and view the pagesource of that link in chrome, i only see what is inside main_content. The , footers, and everything that is not inside main_content is not there, everything on the fronted is good still. Is this normal behaviour?rich-television-50179
01/08/2023, 7:55 PMhx-indicator
usually used for?some-solstice-89459
01/08/2023, 7:55 PMsome-solstice-89459
01/08/2023, 7:56 PMrich-television-50179
01/08/2023, 7:57 PMhx-target
?some-solstice-89459
01/08/2023, 7:58 PM<div>
<button hx-post="/example" hx-indicator="#spinner">
Post It!
</button>
<img id="spinner" class="htmx-indicator" src="/img/bars.svg"/>
</div>
some-solstice-89459
01/08/2023, 7:58 PMsome-solstice-89459
01/08/2023, 8:00 PMrich-television-50179
01/08/2023, 8:00 PMrich-television-50179
01/08/2023, 8:03 PMlate-king-98305
01/08/2023, 10:27 PMlate-king-98305
01/08/2023, 10:32 PM#main_content
for you, making the network payload smaller, and keeping the page from having to reload styles / scripts / fonts / etc. 🙂