mysterious-toddler-20573
08/07/2021, 11:32 PMvictorious-room-74725
08/08/2021, 3:33 AMsalmon-xylophone-28580
08/08/2021, 7:24 AMuser
08/08/2021, 2:11 PMhx-trigger="load, reloadList from:body" when add ['HX-Trigger'] = '{"reloadList": "", "closePopup": ""}' to the response header?user
08/08/2021, 2:11 PMuser
08/08/2021, 4:01 PMhx-get and that's what I'm suspecting is not triggering events. I mean, the events are triggering but not being listened when I imagined they where. Am I going too far with 'side-loading' things (I was trying to make my form and my table reusable)?mysterious-toddler-20573
08/08/2021, 4:45 PMmysterious-toddler-20573
08/08/2021, 4:46 PMmysterious-toddler-20573
08/08/2021, 4:46 PMmysterious-toddler-20573
08/08/2021, 4:47 PMmany-finland-74899
08/08/2021, 5:06 PMmysterious-toddler-20573
08/08/2021, 5:11 PMmany-finland-74899
08/08/2021, 5:49 PMuser
08/08/2021, 5:54 PM<div hx-get="/form">
<!-- on form submit, response has a HX-Trigger: reloadList header if sucessful-->
</div>
<div
hx-get="/table"
hx-trigger="load, reloadList from:body">
...
</div>user
08/08/2021, 5:54 PMmany-finland-74899
08/08/2021, 6:06 PMmysterious-toddler-20573
08/08/2021, 7:17 PMhx-include='{field}' this should produce a css selector to include the valuemysterious-toddler-20573
08/08/2021, 7:18 PMhx-vals to just include the value directly as JSON?mysterious-toddler-20573
08/08/2021, 7:18 PMreloadList event is being fired?many-finland-74899
08/08/2021, 7:19 PMmany-finland-74899
08/08/2021, 7:19 PMmany-finland-74899
08/08/2021, 7:50 PMmysterious-toddler-20573
08/08/2021, 7:54 PM[id="comment1"]mysterious-toddler-20573
08/08/2021, 7:54 PM#comment1 here instead, if I understand correctlyuser
08/08/2021, 7:56 PMmysterious-toddler-20573
08/08/2021, 7:56 PMmonitorEvents trick here: https://htmx.org/docs/#debugging to see if the event is firing on the body?user
08/08/2021, 7:59 PM