red-dinner-66239
11/04/2022, 2:11 PMgorgeous-airport-54386
11/04/2022, 2:11 PMgorgeous-airport-54386
11/04/2022, 2:12 PMred-dinner-66239
11/04/2022, 2:12 PMchilly-refrigerator-94141
11/04/2022, 2:12 PMred-dinner-66239
11/04/2022, 2:14 PMred-dinner-66239
11/04/2022, 2:16 PMgorgeous-airport-54386
11/04/2022, 2:17 PMonclick="myFunction()"
?red-dinner-66239
11/04/2022, 2:19 PMgorgeous-airport-54386
11/04/2022, 2:20 PMred-dinner-66239
11/04/2022, 2:21 PMhtml
<table ref='table' id="myTable" class="table-1">
<thead>
<tr>
<th></th>
<th>N° de commande</th>
<th>Type de service</th>
<th>Prix</th>
<th>Statut</th>
</tr>
</thead>
<tbody>
<tr v-for="post in HubriseOrder" style="border-left: solid 5px; border-color:#248b21;" class="btnSelect tr-commande contenttableforpopup" v-bind:hx-post="'{{ request.path }}?id='+ post.id" hx-target=".modal-body" onclick="myFunction()">
<td data-label="">
<img class="icon-commande"
v-bind:src="'{% get_static_prefix %}apc/images/' + post.pictureplatform">
</td>
<td data-label="N° de commande">[[post.id_order]]</td>
<td data-label="Type de service">[[post.service_type]]</td>
<td data-label="Prix">[[post.amount]]</td>
</tbody>
</table>
red-dinner-66239
11/04/2022, 2:23 PMjs
vueApp = new Vue({
el: "#app",
delimiters: ["[[", "]]"],
data() {
return {
HubriseOrder: [],
};
},
watch: {
HubriseOrder(newOrder, oldOrder) {
htmx.process(this.$refs.table);
}
},
});
var ws = new WebSocket("wss://95a8-2a01-e0a-2bd-f2b0-b1d9-3e81-cb8d-dc59.eu.ngrok.io/ws/");
ws.onopen = function (e) {
ws.send(
JSON.stringify({
action: "list",
request_id: new Date().getTime(),
})
);
};
ws.onmessage = function (e) {
allData = JSON.parse(e.data);
if (allData.action === "list") {
vueApp.$data.HubriseOrder = allData.data;
vueApp.$forceUpdate();
} else if (allData.action === "update") {
vueApp.$data.HubriseOrder.push(allData.data);
}
};
thankful-apartment-66679
11/04/2022, 2:23 PMred-dinner-66239
11/04/2022, 2:25 PMred-dinner-66239
11/04/2022, 2:25 PMcalm-ice-23682
11/04/2022, 5:07 PMflat-painting-36912
11/04/2022, 5:21 PMflat-painting-36912
11/04/2022, 5:22 PMdocument.querySelector('#room-name-submit').onclick = function(e) {
var roomName = document.querySelector('#room-name-input').value;
window.location.pathname = '/chat/' + roomName + '/';
};
calm-ice-23682
11/04/2022, 5:28 PMcalm-ice-23682
11/04/2022, 5:29 PMgorgeous-airport-54386
11/04/2022, 5:30 PMgorgeous-airport-54386
11/04/2022, 5:31 PMhx-get="/chat/find-room-by-name"
->
/chat/find-room-by-name?room-name=myroom
redirects to /chat/myroom
flat-painting-36912
11/04/2022, 5:33 PMfancy-train-23639
11/05/2022, 12:58 AMHX-Trigger
header and handle it in hyperscript, but that doesn't seem to be the case. When trying the following:
html
<tr scope="row" _="on deletedContainer-11 then remove me" id="container-11">
...
</tr>
I'm getting the following error:
"Expected commandList
on deletedContainer-11 then remove me
^^
Any ideas what the issue could be here? I couldn't find any example that covered this case.mysterious-toddler-20573
11/05/2022, 1:01 AMmysterious-toddler-20573
11/05/2022, 1:01 AMmysterious-toddler-20573
11/05/2022, 1:01 AMmysterious-toddler-20573
11/05/2022, 1:21 AMfancy-train-23639
11/05/2022, 1:28 AM"
"Expected commandList
on deletedContainer-11 remove me
^^
fancy-train-23639
11/05/2022, 1:30 AM