high-microphone-71328
05/10/2023, 1:25 PMmysterious-toddler-20573
05/10/2023, 1:29 PMhigh-microphone-71328
05/10/2023, 3:41 PMhigh-microphone-71328
05/10/2023, 3:41 PMproud-librarian-99598
05/10/2023, 6:20 PM<form>
with the validation errors in it if there are. To make this work, I have to repeat the same hx-get
on each input field since it is not an element that inherits. I would liked to have just put it on the <form>
once. Is this just the way it is, or are there alternatives I can use?high-microphone-71328
05/10/2023, 6:24 PMproud-librarian-99598
05/10/2023, 6:28 PMkeyup changed throttle:200ms
for the inputs in the form. If I add hx-get
just on the form, no request is sent. I need to add the hx-get
on the <input>
itself.high-microphone-71328
05/10/2023, 6:31 PMproud-librarian-99598
05/10/2023, 6:32 PMhigh-microphone-71328
05/10/2023, 6:33 PMkeyup changed throttle:200ms
. https://htmx.org/docs/#trigger-modifiershigh-microphone-71328
05/10/2023, 6:52 PMcontent-disposition: attachment; filename=private.file
great-cartoon-12331
05/10/2023, 6:56 PMmysterious-toddler-20573
05/10/2023, 7:08 PMmysterious-toddler-20573
05/10/2023, 7:08 PMmysterious-toddler-20573
05/10/2023, 7:09 PMkeyup
trigger on the form too?high-microphone-71328
05/10/2023, 7:10 PMconst downloadCSVfromJsonResponse = (file) => {
let blob = new Blob([file.body], { type: file.type })
const DownloadUrl = URL.createObjectURL(blob)
const anchorElement = document.createElement('a')
anchorElement.href = DownloadUrl
anchorElement.download = `${file.name}`
anchorElement.click()
anchorElement.parentNode.removeChild(anchorElement)
URL.revokeObjectURL(DownloadUrl)
}
high-microphone-71328
05/10/2023, 7:10 PMproud-librarian-99598
05/10/2023, 7:11 PMmysterious-toddler-20573
05/10/2023, 7:11 PMmysterious-toddler-20573
05/10/2023, 7:11 PMhigh-microphone-71328
05/10/2023, 7:12 PMmysterious-toddler-20573
05/10/2023, 7:13 PMkeyup
should bubblemysterious-toddler-20573
05/10/2023, 7:13 PMmysterious-toddler-20573
05/10/2023, 7:13 PMhigh-microphone-71328
05/10/2023, 7:14 PMproud-librarian-99598
05/10/2023, 7:17 PMmonitorEvents(htmx.find("form"));
does indeed show keyup
events coming from my input. But htmx.logAll();
is not printing anything and I see no request happening.
I'll try to build a small example later, getting late here now.mysterious-toddler-20573
05/10/2023, 7:33 PMmysterious-toddler-20573
05/10/2023, 7:36 PMfew-parrot-58207
05/10/2023, 8:09 PMhigh-microphone-71328
05/10/2023, 8:16 PM