brainy-ice-92385
07/20/2022, 4:55 PMmysterious-toddler-20573
07/20/2022, 6:04 PMhtmx:configRequest
you can look at the detail.headers
to see if HX-Boosted
header is presentwitty-garage-37227
07/20/2022, 6:07 PMmysterious-toddler-20573
07/20/2022, 7:39 PMadamant-state-54102
07/20/2022, 10:28 PM/download
which is setup to trigger the download of a file, if you navigate directly to it in your browser. I would like to hx-get
it somehow, so I can use hx-indicator
while the file is prepared on the server, but still have it trigger the browser's native download functionality when it receives the response. Is this possible somehow?mysterious-toddler-20573
07/20/2022, 10:32 PM/download
produce a progress UI and then, when it is done, do a client-side redirect to, say /download/finished
mysterious-toddler-20573
07/20/2022, 10:32 PM/download
would be the easiestadamant-state-54102
07/20/2022, 10:37 PMmysterious-toddler-20573
07/20/2022, 10:38 PMmysterious-toddler-20573
07/20/2022, 10:38 PMmysterious-toddler-20573
07/20/2022, 10:40 PMadamant-state-54102
07/20/2022, 10:40 PMmysterious-toddler-20573
07/20/2022, 10:40 PMmysterious-toddler-20573
07/20/2022, 10:43 PMHX-Redirect
header) to start the actual download. You could then reenable the download button. I've created UIs like this. A bit of a pain but it's the correct UI pattern for this sort of stuff.mysterious-toddler-20573
07/20/2022, 10:43 PMmysterious-toddler-20573
07/20/2022, 10:43 PMadamant-state-54102
07/20/2022, 10:45 PMmysterious-toddler-20573
07/20/2022, 10:45 PMmysterious-toddler-20573
07/20/2022, 10:46 PMmysterious-toddler-20573
07/20/2022, 10:47 PMmysterious-toddler-20573
07/20/2022, 10:47 PMhandsome-gpu-11538
07/21/2022, 12:26 AMrefined-waiter-90422
07/21/2022, 1:32 AMhx-select-oob
allows you to do a comma seperated list. hx-swap-oob
will allow you to pre-select elements to swap.mysterious-tomato-195
07/21/2022, 10:25 AMhx-select-oob
documentation it says "The value of this attribute is comma separated list of elements to be swapped out of band", but I can't make this work. If I use hx-select-oob="foo, bar"
, #foo
gets replaced but I get an error saying that there's no # bar
element (notice the space). If I use hx-select-oob="foo,bar"
nothing gets replacedmysterious-tomato-195
07/21/2022, 10:34 AM#notifications-dropdown
scroll to not reset on each update, and to do so I need to replace its inner content only.
Maybe I'm using the wrong approach completelylemon-grass-35120
07/21/2022, 10:39 AMlemon-grass-35120
07/21/2022, 10:39 AMmysterious-tomato-195
07/21/2022, 10:48 AMbrainy-ice-92385
07/21/2022, 2:37 PM