bland-coat-6833
01/17/2023, 1:24 PMon init
?bland-coat-6833
01/17/2023, 1:32 PMlate-king-98305
01/17/2023, 1:37 PMlate-king-98305
01/17/2023, 1:44 PMorange-smartphone-63800
01/17/2023, 2:04 PMboosting
variable on the tag
there is a htmx.on('htmx:afterOnLoad') on the product page, when i click on a product card it moves me to the product page but it does not trigger the eventlistener,
when i don't use boosting
it works. Any idea why ?mysterious-toddler-20573
01/17/2023, 2:06 PMhtmx.on('htmx:afterOnLoad')
located?mysterious-toddler-20573
01/17/2023, 2:07 PMbody
tagorange-smartphone-63800
01/17/2023, 2:10 PMhtmx.on('htmx:afterOnLoad', (evt) => {
if (evt.detail.elt.id === 'ProductContainer') {
initApp();
}
});
mysterious-toddler-20573
01/17/2023, 2:22 PMmysterious-toddler-20573
01/17/2023, 2:22 PMsome-solstice-89459
01/17/2023, 2:24 PMsome-solstice-89459
01/17/2023, 2:24 PMmysterious-toddler-20573
01/17/2023, 2:25 PMevt.detail.elt.id === 'ProductContainer'
mysterious-toddler-20573
01/17/2023, 2:26 PMmysterious-toddler-20573
01/17/2023, 2:26 PMechoing-action-55459
01/17/2023, 2:26 PMrequest, swap, sync
, In an ideal world I'd love clear-cut stringified json for all attributes (I know headers
and vals
have it). Some have a :
as the delimiter like settle:1s
and others have a space like closest div
. I've been trying to create a well typed interface like disinheritAll
(with jsx) would apply hx-disinherit="all"
.
I'm trying to cater to the docs, is there a possibility that this is all easier programmatically than the docs. Can you point me to the code that deserializes the attribute value? Any tips?orange-smartphone-63800
01/17/2023, 2:27 PMhx-get
which will get the html of product_fragment.html
when it afterOnLoad
it should trigger htmx:afterOnLoad
but it's not.
evt.detail.elt.id === 'ProductContainer'
this is to ensure which hx-get
event i want to initApporange-smartphone-63800
01/17/2023, 2:27 PMmysterious-toddler-20573
01/17/2023, 2:27 PMmysterious-toddler-20573
01/17/2023, 2:28 PMsome-solstice-89459
01/17/2023, 2:28 PMsome-solstice-89459
01/17/2023, 2:28 PMmysterious-toddler-20573
01/17/2023, 2:28 PMtall-dinner-62086
01/17/2023, 2:30 PMmysterious-toddler-20573
01/17/2023, 2:30 PMmysterious-toddler-20573
01/17/2023, 2:30 PMechoing-action-55459
01/17/2023, 2:30 PMhx-swap="innerHTML settle:100ms"
? Can it be hx-swap="settle:100ms innerHTML "
?mysterious-toddler-20573
01/17/2023, 2:31 PMmysterious-toddler-20573
01/17/2023, 2:31 PM