ripe-action-67367
09/07/2022, 11:04 AMhx-target="#modal" hx-select="#modal" hx-swap="outerHTML"
on the save buttondry-pharmacist-51808
09/07/2022, 11:54 AMstocky-dentist-80693
09/07/2022, 11:56 AMhundreds-dusk-97323
09/07/2022, 1:10 PMbillions-architect-49743
09/07/2022, 2:10 PM<div hx-get="/demo/">
<select>...</select>
<div>
In the example above, I'd like the select to trigger a hx-get, but set the attribute via the div. The reason, is I am using django, and I can conveniently render form fields, but I can't easily attach attributes to it.bumpy-cricket-7187
09/07/2022, 2:27 PMbillions-architect-49743
09/07/2022, 2:34 PMbland-coat-6833
09/07/2022, 2:48 PMbumpy-cricket-7187
09/07/2022, 2:50 PMbumpy-cricket-7187
09/07/2022, 3:00 PMbland-coat-6833
09/07/2022, 3:04 PMdocument.write
or similar just to see if you can edit the DOM. Then maybe do a fetch
to your server and see if that works?bland-coat-6833
09/07/2022, 3:07 PMancient-shoe-86801
09/07/2022, 5:08 PMmysterious-toddler-20573
09/07/2022, 6:06 PMmysterious-toddler-20573
09/07/2022, 6:06 PMacceptable-cpu-11229
09/07/2022, 6:09 PMhx-post
call. The data I get back is an octet-stream
. How do I start to download it instead of returning it as a string being injected into an element?mysterious-toddler-20573
09/07/2022, 6:10 PMmysterious-toddler-20573
09/07/2022, 6:11 PMacceptable-cpu-11229
09/07/2022, 6:11 PMHX-Redirect
then, with a formed link. The trouble is that server that sends data back to be, sends it as octet-stream
, and there is no file formed. But that's not an htmx issue ofc xDmysterious-toddler-20573
09/07/2022, 6:12 PMacceptable-cpu-11229
09/07/2022, 6:12 PMmysterious-toddler-20573
09/07/2022, 6:12 PMacceptable-cpu-11229
09/07/2022, 6:13 PMacceptable-cpu-11229
09/07/2022, 6:13 PMfierce-soccer-7824
09/08/2022, 12:01 AMbumpy-cricket-7187
09/08/2022, 5:55 AMsalmon-xylophone-28580
09/08/2022, 10:27 AMblue-ghost-19146
09/08/2022, 11:20 AMcheckbox.checked
is altered by a JS function, but only checking/unchecking the checkbox manually seems to activate the hx-trigger="change from:#checkbox-id"
. Any guidance would be appreciated πflat-painting-36912
09/08/2022, 11:42 AM