incalculable-scientist-18707
10/02/2021, 3:17 PMincalculable-scientist-18707
10/02/2021, 3:40 PMincalculable-scientist-18707
10/02/2021, 3:40 PMmysterious-toddler-20573
10/02/2021, 3:53 PMmysterious-toddler-20573
10/02/2021, 3:53 PMmysterious-toddler-20573
10/02/2021, 3:53 PMincalculable-scientist-18707
10/02/2021, 4:29 PMincalculable-scientist-18707
10/02/2021, 4:30 PMmysterious-toddler-20573
10/02/2021, 5:08 PMmysterious-toddler-20573
10/02/2021, 5:08 PMmysterious-toddler-20573
10/02/2021, 5:08 PMincalculable-scientist-18707
10/02/2021, 7:43 PMmysterious-toddler-20573
10/02/2021, 8:00 PMincalculable-scientist-18707
10/02/2021, 8:05 PMwindow.location.reload(true);
In VS Code the word "reload" has a strikethrough. Trying to see why now.mysterious-toddler-20573
10/02/2021, 8:12 PMincalculable-scientist-18707
10/02/2021, 10:26 PMwindow.location.reload(true);
to the end of
function restoreHistory(path) {
saveHistory();
path = path || location.pathname+location.search;
var cached = getCachedHistory(path);
if (cached) {
var fragment = makeFragment(cached.content);
var historyElement = getHistoryElement();
var settleInfo = makeSettleInfo(historyElement);
swapInnerHTML(historyElement, fragment, settleInfo)
settleImmediately(settleInfo.tasks);
document.title = cached.title;
window.scrollTo(0, cached.scroll);
currentPathForHistory = path;
triggerEvent(getDocument().body, "htmx:historyRestore", {path:path});
window.location.reload(true); //new line
incalculable-scientist-18707
10/02/2021, 10:30 PMincalculable-scientist-18707
10/02/2021, 10:31 PMfresh-controller-36545
10/05/2021, 1:47 PMmagnificent-vase-65764
10/06/2021, 8:06 AMmysterious-toddler-20573
10/06/2021, 11:44 AMhtmx.config.includeIndicatorStyles
to false, and then you'd need to manually include the styles for indictators:
css
.htmx-indicator {opacity:0;transition: opacity 200ms ease-in;}
.htmx-indicator.htmx-request {opacity:1}
.htmx-indicator .htmx-request {opacity:1}
magnificent-vase-65764
10/06/2021, 1:50 PMambitious-salesmen-706
10/07/2021, 11:31 AMhx-trigger=load
but no luck.mysterious-toddler-20573
10/07/2021, 12:48 PMmonitorEvents()
trick here: https://htmx.org/docs/#debugging to see what events bootstrap is triggeringwhite-garden-37887
10/09/2021, 12:49 PM<div hx-trigger="sse:event" hx-ws="send"></div>
sse is send but no websocket call is happening. can you support me please?white-garden-37887
10/09/2021, 12:50 PMwhite-garden-37887
10/09/2021, 12:52 PM<div hx-ws="connect:/ws/">
<div hx-sse="connect:/sse/">
<div hx-trigger="sse:event" hx-ws="send"></div>
</div>
</div>
fresh-controller-36545
10/10/2021, 5:09 PMpython
def htmx_login_required(f):
""" Ensure proper redirection when a HTMX request is unauthenticated – this ensures the login-form is not loaded into a partial-spot """
def func(request, *args, **kwargs):
if not request.htmx: # return bad-response for non-htmx requests
return HttpResponseBadRequest()
if not request.user or not request.user.is_authenticated: # redirect to login page
return HttpResponseClientRedirect(settings.LOGIN_URL)
return f(request, *args, **kwargs)
return func
fresh-controller-36545
10/10/2021, 5:12 PMslippers
btw?bitter-dog-98292
10/13/2021, 6:28 PM