green-flower-49070
07/16/2022, 6:19 PMgreen-flower-49070
07/16/2022, 6:19 PMgreen-flower-49070
07/16/2022, 7:09 PMhelpful-holiday-72672
07/16/2022, 8:06 PMjs
function checklist() {
var input_obj = document.getElementById('ProxyListInput')
var live_obj = document.getElementById('LiveProxyOutput')
var dead_obj = document.getElementById('DeadProxyOutput')
const ProxyList = input_obj.value.split('\n')
ProxyList.forEach(proxy => {
$.get('https://api.pargonix.xyz/check/proxy', {proxy:proxy}, function (data, textStatus, jqXHR) {
if (data.Status == "LIVE") {
live_obj.value += data.Status + " | " + data.Type + " | " + data.Proxy + "\n"
} else if (data.Status == "DEAD") {
dead_obj.value += data.Status + " | " + data.Proxy + "\n"
} else {
alert("Error, No valid status")
}
});
})
}
helpful-holiday-72672
07/16/2022, 8:07 PMhundreds-kitchen-60317
07/16/2022, 8:22 PMancient-shoe-86801
07/17/2022, 1:19 AMsquare-flower-1282
07/17/2022, 1:40 AMbumpy-zoo-26881
07/17/2022, 9:34 AMripe-action-67367
07/17/2022, 9:57 AMjs
htmx.on("#form", "htmx:afterSettle", function() { flatpickr(".datetimeinput"); })
Change the selectors to match your case. Note, that \#form selector should be the one of the target element, which displays ajax responseadamant-exabyte-92636
07/17/2022, 9:58 AMlate-king-98305
07/17/2022, 8:07 PMmysterious-toddler-20573
07/17/2022, 10:14 PMmysterious-toddler-20573
07/17/2022, 10:15 PMmysterious-toddler-20573
07/17/2022, 10:17 PMlate-king-98305
07/17/2022, 10:30 PMmysterious-toddler-20573
07/17/2022, 10:35 PMcalm-queen-64495
07/18/2022, 2:44 AMshy-gigabyte-51639
07/18/2022, 12:56 PMshy-gigabyte-51639
07/18/2022, 1:08 PMbrainy-ice-92385
07/18/2022, 3:40 PMstocky-dentist-80693
07/18/2022, 3:41 PMhx-swap-oob
- "Out of band elements must be in the top level of the response, and not children of the top level elements."
Is that still true, and by design?
Because I'm currently responding with a whole page (<html><body>...
and all) and it includes non-top-level hx-swap-oob's, and they are being swapped (which is what I want!)
The trigger for the request is:
<div
id="results"
hx-get="<?= current_url() ?>"
hx-select="#results"
hx-disinherit="*"
hx-target="this"
hx-trigger="refresh from:body"
hx-swap="outerHTML"
>
mysterious-toddler-20573
07/18/2022, 4:05 PMstocky-dentist-80693
07/18/2022, 4:11 PMhx-select
in this way) and can I / should I be doing it? 😄stocky-dentist-80693
07/18/2022, 4:13 PM#results
) then the live counter should reflect the change - which it is - but the way I read the docs, it shouldn't :D)mysterious-toddler-20573
07/18/2022, 4:13 PMhx-select-oob
is this useful?mysterious-toddler-20573
07/18/2022, 4:15 PMmysterious-toddler-20573
07/18/2022, 4:15 PMmysterious-toddler-20573
07/18/2022, 4:15 PMmysterious-toddler-20573
07/18/2022, 4:15 PM