ancient-father-3063
07/03/2022, 10:51 PMancient-father-3063
07/03/2022, 10:52 PMancient-father-3063
07/03/2022, 10:52 PMancient-father-3063
07/03/2022, 10:53 PMancient-father-3063
07/03/2022, 11:00 PMhtml
hx-params="loadx"
ancient-father-3063
07/03/2022, 11:01 PMancient-father-3063
07/03/2022, 11:01 PMancient-father-3063
07/03/2022, 11:39 PMwhite-motorcycle-95262
07/04/2022, 1:30 AMhtmx:beforeRequest
and htmx:beforeSend
?
I'm trying to put the various major HTMX events "in order" to help create a HTMX progress bar in Hyperscript. I'm thinking:
1) beforeRequest
2) beforeSend (?)
3) afterRequest
4) beforeProcessNode (?)
5) afterProcessNode (?)
5) beforeSwap
6) afterSwap
7) afterSettle
the idea being that hyperscript would increment the progress bar by 1/n, where n is the number of steps.
I just saw the htmx:xhs:progress
event, but I'm not sure about the specifics of that, or if it would be applicable to fetching HTML from a server running Django.white-motorcycle-95262
07/04/2022, 2:27 AMmysterious-toddler-20573
07/04/2022, 3:04 AMmysterious-toddler-20573
07/04/2022, 3:04 AMmysterious-toddler-20573
07/04/2022, 3:04 AMancient-father-3063
07/04/2022, 3:28 AMancient-father-3063
07/04/2022, 4:44 AMbland-coat-6833
07/04/2022, 4:39 PMbland-coat-6833
07/04/2022, 4:39 PMpowerful-train-54786
07/04/2022, 7:34 PM{formvalues: [{value: "input 1", type: "h1"}, ...]}
I know there's the htmx:configRequest, but I essentially want instead of just using hx-post
I want to do some pre-processing and do the hx-post after manually collecting that datapowerful-train-54786
07/04/2022, 9:17 PM<div hx-get="/example" hx-vals='js:{myVal: calculateValue()}'>Get Some HTML, Including a Dynamic Value from Javascript in the Request</div>
ripe-action-67367
07/05/2022, 6:09 AMripe-action-67367
07/05/2022, 6:18 AMsome-diamond-25050
07/05/2022, 9:49 AMgorgeous-ghost-95789
07/05/2022, 2:25 PMfrom:body
to listen to the right location.powerful-train-54786
07/05/2022, 10:35 PMmysterious-toddler-20573
07/06/2022, 12:30 AMwhite-motorcycle-95262
07/06/2022, 1:26 AMwhite-motorcycle-95262
07/06/2022, 2:19 AMwhite-motorcycle-95262
07/06/2022, 2:21 AMpowerful-train-54786
07/06/2022, 2:23 AM