hundreds-camera-24900
12/31/2022, 8:00 PMhundreds-camera-24900
12/31/2022, 8:01 PMimportant-cricket-63511
12/31/2022, 8:15 PMhundreds-camera-24900
12/31/2022, 8:15 PMwonderful-school-81222
12/31/2022, 8:15 PMhundreds-camera-24900
12/31/2022, 8:16 PMwonderful-school-81222
12/31/2022, 8:16 PMwonderful-school-81222
12/31/2022, 8:16 PMwonderful-school-81222
12/31/2022, 8:17 PMhundreds-camera-24900
12/31/2022, 8:18 PMhundreds-camera-24900
12/31/2022, 8:18 PMhundreds-camera-24900
12/31/2022, 8:18 PMhundreds-camera-24900
12/31/2022, 8:18 PMhundreds-camera-24900
12/31/2022, 8:18 PMwonderful-school-81222
12/31/2022, 8:26 PMhtml
<form id="search-form" class="relative">
<i class="absolute bi bi-search text-gray-400 top-4 left-4"></i>
<input id="phraseDiv" type="search" hx-post="search_result" hx-trigger="keyup changed delay:1s"
hx-target="#search-results"
class="bg-white h-14 w-full px-12 rounded-lg focus:outline-none hover:cursor-pointer">
</form>
wonderful-school-81222
12/31/2022, 8:27 PMhundreds-camera-24900
12/31/2022, 8:29 PMhundreds-camera-24900
12/31/2022, 8:30 PMwonderful-school-81222
12/31/2022, 8:32 PMBody: b'search='
wonderful-school-81222
12/31/2022, 8:33 PMwonderful-school-81222
12/31/2022, 8:34 PMhundreds-camera-24900
12/31/2022, 8:35 PMwonderful-school-81222
12/31/2022, 8:37 PMlimited-potato-46306
12/31/2022, 8:42 PM<form hx-post="/store">
<input id="title" name="title" type="text"
hx-post="/validate"
hx-trigger="change"
hx-sync="closest form:abort">
<button type="submit">Submit</button>
</form>
And
<form hx-post="/store">
<input id="title" name="title" type="text"
hx-post="/validate"
hx-trigger="change"
hx-sync="closest form:drop"
>
<button type="submit">Submit</button>
</form>
In the first example, the docs say that if there were a validation request and a form submission, the validation request would be cancelled and the form submission would be prioritized. In the second example, the validation would be prioritized and the form submission would be dropped.
Both examples use "form:drop" or "form:abort". In both cases, wouldn't the form submission be cancelled? Don't both actions operate on the form, not on the input?wonderful-school-81222
12/31/2022, 10:19 PMsome-solstice-89459
12/31/2022, 10:34 PMwonderful-school-81222
12/31/2022, 10:35 PMhtml
hx-trigger="keyup changed delay:500ms, search"
What does the term at the end called "search" do?some-solstice-89459
12/31/2022, 10:35 PMwonderful-school-81222
12/31/2022, 10:36 PMhx-post="search_result"
wonderful-school-81222
12/31/2022, 10:37 PM