lively-vegetable-81321
05/15/2023, 8:17 PMhx-post
, yes?great-cartoon-12331
05/15/2023, 8:32 PMhundreds-jordan-64279
05/15/2023, 10:23 PMhundreds-stone-62176
05/15/2023, 11:07 PMhundreds-jordan-64279
05/16/2023, 10:17 AMlively-vegetable-81321
05/16/2023, 5:47 PMgorgeous-ghost-95789
05/16/2023, 5:49 PMlively-vegetable-81321
05/16/2023, 5:50 PMlively-vegetable-81321
05/16/2023, 5:50 PMgorgeous-ghost-95789
05/16/2023, 5:55 PMhtmx.config.useTemplateFragments
-- this uses a more modern way of handling swaps, which is often more resillient. Or, look at the idiomorph extension (https://github.com/bigskysoftware/idiomorph)shy-zebra-22292
05/16/2023, 5:56 PMlively-vegetable-81321
05/16/2023, 5:56 PMripe-action-67367
05/16/2023, 5:59 PMlively-vegetable-81321
05/16/2023, 6:02 PMhigh-microphone-71328
05/16/2023, 6:34 PMlimited-teacher-83117
05/16/2023, 7:24 PMhigh-microphone-71328
05/16/2023, 7:28 PMlimited-teacher-83117
05/16/2023, 7:29 PMlimited-teacher-83117
05/16/2023, 7:30 PMhx-swap-oob
. If you want it to populate a later request, try returning a pre-populated input
. Just some other options to considerhigh-microphone-71328
05/16/2023, 8:06 PMfamous-monitor-57000
05/16/2023, 9:07 PMfamous-monitor-57000
05/16/2023, 9:08 PM<div class="table" hx-post="/table.php" hx-trigger="load, every 1s"></div>
I also have a button that can move to a specific position in the table, like this:
<button hx-post="/table.php" hx-target=".test" hx-vals='{"position": "100"}'>100</button>
How do I make the button always override any polling request that is being made at the time? For example, if I click the button while the every 1s
polling request is being processed.ripe-action-67367
05/16/2023, 10:00 PMripe-action-67367
05/16/2023, 10:04 PMfamous-monitor-57000
05/16/2023, 11:04 PM<div class="table" hx-post="/table.php" hx-trigger="load, every 1s" hx-sync=".table:abort"></div>
<button hx-post="/table.php" hx-target=".table" hx-vals='{"position": "100"}'>100</button>
famous-monitor-57000
05/16/2023, 11:08 PMhx-sync=".table:abort"
the right syncing strategy?mysterious-toddler-20573
05/16/2023, 11:16 PMhx-sync=".table"
on the buttonmysterious-toddler-20573
05/16/2023, 11:16 PMfamous-monitor-57000
05/16/2023, 11:24 PMnarrow-quill-86201
05/16/2023, 11:30 PM