mysterious-toddler-20573
10/05/2021, 8:53 PMouterHTML swap, so the .htmx-settling will be on the td since that's the targetmysterious-toddler-20573
10/05/2021, 8:53 PMcss
td.update_flash.htmx-settling {
background: darkseagreen;
}
td {
transition: all 1.2s;
}mysterious-toddler-20573
10/05/2021, 8:54 PMbillions-microphone-84331
10/05/2021, 8:57 PMmysterious-toddler-20573
10/05/2021, 8:59 PMhx-post is low level htmx, it doesn't say anything about how the URL should be updated. It's up to you, the developer, to update the URL if you want to. hx-boost on the other hand tells htmx that you want this element to "act normally" but use an ajax request. So htmx wires in a bunch of stuff (targets the body, pushes the URL, etc.) It's a higher level attribute.important-winter-64905
10/05/2021, 9:09 PMclass="" to class="update_flash". On the second time the form is submitted the class is already update_flashmysterious-toddler-20573
10/05/2021, 9:12 PMmysterious-toddler-20573
10/05/2021, 9:14 PMmysterious-toddler-20573
10/05/2021, 9:14 PMmysterious-toddler-20573
10/05/2021, 9:15 PMbillions-microphone-84331
10/06/2021, 5:19 AMquiet-angle-80724
10/06/2021, 10:29 AMmysterious-toddler-20573
10/06/2021, 11:46 AMmysterious-toddler-20573
10/06/2021, 11:46 AMhx-boost='true' on an enclosing div, and the form will be set up to use an ajax request insteadmysterious-toddler-20573
10/06/2021, 12:57 PMmysterious-toddler-20573
10/06/2021, 12:57 PMbillions-microphone-84331
10/06/2021, 1:03 PMadamant-exabyte-92636
10/06/2021, 1:05 PMic-enhance="true") via Javascript (formElement.submit()) and it would still be submitted via intercooler. The same doesn't seem to be happening when JS-submitting an htmx boosted form (i.e. normal form submit is triggered). Is that right?mysterious-toddler-20573
10/06/2021, 1:16 PMmysterious-toddler-20573
10/06/2021, 1:19 PMmysterious-toddler-20573
10/06/2021, 1:19 PMmysterious-toddler-20573
10/06/2021, 1:20 PMGET methods are unchangedmysterious-toddler-20573
10/06/2021, 1:20 PMmysterious-toddler-20573
10/06/2021, 1:20 PMmysterious-toddler-20573
10/06/2021, 1:21 PMadamant-exabyte-92636
10/06/2021, 1:25 PM$( "#target" ).submit();adamant-exabyte-92636
10/06/2021, 1:26 PMsubmit event a different waymysterious-toddler-20573
10/06/2021, 1:27 PM.submit() doesn't trigger the submit eventmysterious-toddler-20573
10/06/2021, 1:28 PMmysterious-toddler-20573
10/06/2021, 1:28 PM