miniature-lizard-24702
09/18/2022, 11:50 AMgreen-army-74971
09/18/2022, 11:59 AMmysterious-toddler-20573
09/18/2022, 2:16 PMhtmx:error
green-army-74971
09/18/2022, 3:02 PMadamant-state-54102
09/18/2022, 3:42 PMmysterious-toddler-20573
09/18/2022, 3:50 PMmysterious-toddler-20573
09/18/2022, 3:50 PMadamant-state-54102
09/18/2022, 3:56 PMhtmx:redirectReceived
event, then I could handle that by keeping the overlay. This has the advantage of not spreading the logic across both server and client for this particular feature (ie, server would be able to redirect as normal, not worrying about the client experience with trigger headers, and all the logic is on the client, albeit in the form of both an hx-indicator property and an event handler.mysterious-toddler-20573
09/18/2022, 3:57 PMmysterious-toddler-20573
09/18/2022, 3:57 PMmysterious-toddler-20573
09/18/2022, 3:57 PMmysterious-toddler-20573
09/18/2022, 3:57 PMadamant-state-54102
09/18/2022, 4:00 PMhx-indicator="#overlay keepOnRedirect
.
I'd guess the pattern is probably reasonably common that it could be justified, but I don't know.refined-pillow-25368
09/18/2022, 8:34 PMancient-shoe-86801
09/18/2022, 11:05 PMboundless-rocket-26534
09/19/2022, 9:07 AMproud-librarian-99598
09/19/2022, 1:30 PM<div hx-swap="none">
<input id="date-range-from"
type="date"
name="fromDate"
th:value="${fromDate}"
hx:get="@{/batches-table}"
hx-params="fromDate,toDate"
>
<input id="date-range-to"
type="date"
name="toDate"
th:value="${toDate}">
</div>
But that does a request with only the fromDate
, not the toDate
from the other input.freezing-waitress-26396
09/19/2022, 1:41 PMhx-include="closest div"
on the first input
?proud-librarian-99598
09/19/2022, 1:51 PMechoing-dress-67727
09/19/2022, 4:08 PMhtmx.ajax
?mysterious-toddler-20573
09/19/2022, 4:22 PMhtmx:configRequest
and override the Content-Type
headerechoing-dress-67727
09/19/2022, 4:41 PMechoing-dress-67727
09/19/2022, 5:35 PMechoing-dress-67727
09/19/2022, 5:41 PMancient-shoe-86801
09/20/2022, 1:29 AMancient-shoe-86801
09/20/2022, 1:29 AMcuddly-keyboard-70746
09/20/2022, 1:34 AMcuddly-keyboard-70746
09/20/2022, 1:39 AMbrief-plumber-50843
09/20/2022, 8:59 AM<link rel="icon" href="data:,">
to get rid of favicon requeststall-river-23601
09/20/2022, 11:44 AM