calm-tiger-90815
07/31/2022, 8:03 PMmysterious-toddler-20573
07/31/2022, 8:04 PMmysterious-toddler-20573
07/31/2022, 8:05 PMbrainy-ice-92385
07/31/2022, 8:21 PM<form />
gets swapped.
This would add complexity but the benefit is that the user's cursor could be preserved. E.g. if a user is typing their email, then hits Enter to submit, their cursor would remain in the same place when the validation errors appear.calm-tiger-90815
07/31/2022, 8:24 PMbrainy-ice-92385
07/31/2022, 8:24 PMmysterious-toddler-20573
07/31/2022, 8:53 PMmysterious-toddler-20573
07/31/2022, 8:54 PMbrainy-ice-92385
07/31/2022, 8:55 PMmysterious-toddler-20573
07/31/2022, 8:59 PMmysterious-toddler-20573
07/31/2022, 8:59 PMmysterious-toddler-20573
07/31/2022, 9:00 PMmysterious-toddler-20573
07/31/2022, 9:00 PMmysterious-toddler-20573
07/31/2022, 9:00 PMbrainy-ice-92385
07/31/2022, 10:14 PMhundreds-camera-24900
07/31/2022, 11:21 PMhundreds-camera-24900
07/31/2022, 11:21 PMlittle-journalist-53964
08/01/2022, 10:47 AM<timing declaration>
as per https://htmx.org/attributes/hx-trigger/? Would be nice to have the grammar specified somewheretall-dinner-62086
08/01/2022, 10:54 AMlate-king-98305
08/01/2022, 1:22 PMtall-dinner-62086
08/01/2022, 2:23 PMContent-Disposition: attachment
header? I'm trying to trigger a file download from an hx-gettall-dinner-62086
08/01/2022, 2:23 PMripe-action-67367
08/01/2022, 2:34 PMtall-dinner-62086
08/01/2022, 2:35 PMtall-dinner-62086
08/01/2022, 2:36 PMAccept
header to allow users to download reports in their preferred format, but it's looking like more trouble than it's worthmysterious-toddler-20573
08/01/2022, 2:38 PMhx-boost='false'
on the download linktall-dinner-62086
08/01/2022, 2:39 PM<button hx-get="" hx-headers='{"Accept": "text/csv"}'>
and then on the backend I could just look at the Accept
header to set the return typestall-dinner-62086
08/01/2022, 2:39 PMripe-action-67367
08/01/2022, 2:40 PM