refined-waiter-90422
05/03/2022, 7:49 PM<script src="https://unpkg.com/htmx.org@1.7.0/dist/htmx.min.js"></script>
<body hx-boost="true"> πproud-librarian-99598
05/03/2022, 8:08 PMproud-librarian-99598
05/03/2022, 8:20 PMHX-Redirect response header useful? I would assume most server-side libraries already allow to send a 302 redirect?some-hairdresser-28401
05/03/2022, 9:23 PMfetch issues which might change things some day:
* https://github.com/whatwg/fetch/issues/763
* https://github.com/whatwg/fetch/issues/601jolly-kite-167
05/03/2022, 11:35 PMrefined-waiter-90422
05/04/2022, 12:59 AMrefined-waiter-90422
05/04/2022, 12:59 AMmysterious-tomato-195
05/04/2022, 8:00 AMbland-coat-6833
05/04/2022, 8:50 AMws-send to ws-send="". It shouldn't make a difference but the docs have it both ways, so give it a gomysterious-tomato-195
05/04/2022, 9:06 AMbland-coat-6833
05/04/2022, 9:30 AMGET
html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title></title>
<script src="https://unpkg.com/htmx.org@1.7.0"></script>
<script src="https://unpkg.com/htmx.org@1.7.0/dist/ext/ws.js" ></script>
</head>
<body>
<script>
htmx.logAll();
</script>
<div hx-ext="ws" ws-connect="wss://demo.piesocket.com/v3/channel_1?api_key=VCXCEuvhGcBDP7XhiJJUDvR1e1D3eiVjgZ9VRiaV¬ify_self">
<div id="chat_room">
...
</div>
<form ws-send>
<input name="chat_message">
</form>
</div>
</body>
</html>mysterious-tomato-195
05/04/2022, 9:31 AMws-send=""? I won't be able to test it for a whilebillions-greece-86178
05/04/2022, 9:39 AMbland-coat-6833
05/04/2022, 9:56 AMmysterious-tomato-195
05/04/2022, 9:57 AMbland-coat-6833
05/04/2022, 10:04 AMpreventDefault() not happening somewhere.polite-oil-80202
05/04/2022, 10:37 AMjs
document.getElementById("divId").innerHTML=
I have an issue not related to htmx, and I'd like to inject the html in a small html file the way htmx would do it in order to debug my problempolite-oil-80202
05/04/2022, 11:11 AMmysterious-toddler-20573
05/04/2022, 12:18 PMmysterious-toddler-20573
05/04/2022, 12:19 PMpolite-oil-80202
05/04/2022, 12:22 PMpolite-oil-80202
05/04/2022, 1:33 PMtall-dinner-62086
05/04/2022, 2:30 PMmysterious-toddler-20573
05/04/2022, 2:32 PMtall-dinner-62086
05/04/2022, 2:36 PMtall-dinner-62086
05/04/2022, 2:37 PMjolly-kite-167
05/04/2022, 2:52 PMgreat-midnight-35149
05/04/2022, 2:58 PMtall-dinner-62086
05/04/2022, 3:03 PMencodeParameters function of an extension