future-table-82610
11/29/2022, 7:37 PMswap
setting, but I can't figure out where since the element itself hasn't changed. I've turned on debugging, but I can't figure out where to see the various htmx settings that would impact an element. Any tips?future-table-82610
11/29/2022, 7:39 PMhx-validate
doesn't seem to work when the element is submitted via a button click and the input
elements are included via hx-include
. Maybe that's a strange edge case, but it threw me so figured I'd raise it.future-table-82610
11/29/2022, 7:40 PMabundant-spring-38265
11/29/2022, 7:58 PMabundant-spring-38265
11/29/2022, 7:59 PMgreen-activity-6102
11/29/2022, 8:02 PMmysterious-toddler-20573
11/29/2022, 8:53 PMhx-include='closest form'
and the values should be included in the requestabundant-spring-38265
11/29/2022, 9:18 PMearly-camera-41285
11/29/2022, 9:29 PM<tr/>
and am seeing that the HTMX attributes are not initialized. I think I remember seeing a lot of chatting about this issue. Is this what idiomorph is for? How are we swapping pieces of HTML tables these days?early-camera-41285
11/29/2022, 9:34 PMmysterious-toddler-20573
11/29/2022, 9:34 PMtr
should work, but it won't play nicely with other content in the response (e.g. oob) unless you turn template parsing on: https://htmx.org/docs/#config htmx.config.useTemplateFragments
set to true
(nukes IE compatibility tho)mysterious-toddler-20573
11/29/2022, 9:34 PMclever-activity-24633
11/29/2022, 9:46 PMmysterious-toddler-20573
11/29/2022, 9:48 PMgreat-lifeguard-29000
11/30/2022, 12:55 AM<div><p id="notifications"></p>
<form method="post" name="chat_message" ws-send="true"><input
autocomplete="off" name="chat_message"/></form>
</div>
When this form is submitted, I get websocket event on the server with the attribute and value of "chat_message": "the value of the form field" along with a "HEADERS" key with the normal HX-* values. What I am trying to do is generate a ws event by clicking on an <a>
tag, like so:
<a href="#" method="post" name="change_room" value="Room"
ws-send="true">Room</a>
When I do this, I get a map with just "HEADERS" and no other entries. I'm trying to get something along the lines of "change_room": "Room" (the name: value pair). Any ideas on how to do this?great-lifeguard-29000
11/30/2022, 12:57 AMboundless-leather-51644
11/30/2022, 9:03 AMripe-action-67367
11/30/2022, 11:44 AMboundless-vase-80440
11/30/2022, 12:28 PMsalmon-oil-67352
11/30/2022, 1:58 PMtall-dinner-62086
11/30/2022, 2:06 PMtall-dinner-62086
11/30/2022, 2:07 PMhundreds-cartoon-20446
11/30/2022, 6:05 PM<div>
placeholder for the video and appendChild()
a <video>
inside it. My comment on that issue gives you an idea of how to go about that.hundreds-cartoon-20446
11/30/2022, 6:06 PMmysterious-toddler-20573
11/30/2022, 7:40 PMmysterious-toddler-20573
11/30/2022, 7:41 PMmysterious-toddler-20573
11/30/2022, 7:41 PMminiature-lizard-24702
11/30/2022, 8:07 PMboundless-vase-80440
11/30/2022, 8:24 PMancient-shoe-86801
11/30/2022, 9:04 PM