Replies: 2 comments 2 replies
-
|
If I get it right, you can create this can start process and return this will be appended after form and start polling |
Beta Was this translation helpful? Give feedback.
2 replies
-
|
ok not really what I have in mind, I will stick the proposed "polling" div
workaround, it took me some time to reason about but it works perfectly
Tanks for your answers and your time !
…On Tue, 14 May 2024 at 21:23, Nanimo1309 ***@***.***> wrote:
While it is good to show that your process is running via another div with
information, you can try
<form ... hx-trigger="submit, notDone delay:1s">
and send HX-Trigger: notDone HTTP header, but you must have in mind that
this will send whole form every time
—
Reply to this email directly, view it on GitHub
<#2543 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAL7AUQXKBVVFA43DR7ZGLLZCJQBVAVCNFSM6AAAAABHR5HFUKVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4TIMZXG42TE>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello
I don't know if it's possible to do that with HTMX, I spent some time searching about it but could not find anything.
I have a div element that is doing hx-get with a polling interval, however I want to trigger this polling after having launched a background job on server side.
I think it would be nice that the polling condition could be started when the server send back a Hx-Trigger header response.
Regards
Beta Was this translation helpful? Give feedback.
All reactions