great-cartoon-12331
05/09/2023, 12:57 AMaloof-crayon-56651
05/09/2023, 12:58 AMaloof-crayon-56651
05/09/2023, 1:00 AMbest-fireman-79576
05/09/2023, 1:09 AMgreat-cartoon-12331
05/09/2023, 2:22 AMquiet-nightfall-51817
05/09/2023, 3:06 AMmysterious-toddler-20573
05/09/2023, 3:23 AMgreat-article-50141
05/09/2023, 4:33 AMtop-[117px]
faint-sundown-13087
05/09/2023, 8:11 AM<script src="templates/user.html" id="user-template" type="text/mustache"></script>
templates/user.html:
<template>
<table class="table table-sm">
<thead>
<tr class="border-top-3">
<th scope="col">id</th>
<th scope="col">msisdn</th>
</tr>
</thead>
<tbody>
<tr>
<td>{{ID}}</td>
<td>{{Msisdn}}</td>
</tr>
</tbody>
</table>
</template>
I have <body hx-ext="client-side-templates">
in index.html. Here is the actual :
<div class="container">
<div class="row">
<form>
<div class="form-group">
<label>
<input hx-get="/api/user"
hx-trigger="keyup changed delay:2s"
hx-target="#user-content"
mustache-template="user-template"
type="number"
placeholder="msisdn"
value=""
name="msisdn"
class="form-control" autofocus>
</label>
</div>
</form>
<div id="user-content"></div>
</div>
</div>
prehistoric-energy-54888
05/09/2023, 9:16 AMprehistoric-energy-54888
05/09/2023, 9:16 AMprehistoric-energy-54888
05/09/2023, 9:17 AMbillions-window-36824
05/09/2023, 3:20 PMprehistoric-energy-54888
05/09/2023, 3:25 PMhttps://cdn.discordapp.com/attachments/725789747212976259/1105515807158587432/image.pngβΎ
abundant-dog-96915
05/09/2023, 4:13 PMfierce-terabyte-83074
05/09/2023, 5:30 PMcuddly-keyboard-70746
05/09/2023, 6:39 PMabundant-dog-96915
05/09/2023, 7:31 PMhundreds-stone-62176
05/09/2023, 8:12 PMdazzling-shoe-67340
05/09/2023, 10:07 PMhigh-microphone-71328
05/09/2023, 10:20 PM<form
hx-get="{% url 'dhl:customer_shipment_list' %}"
hx-on="htmx:beforeRequest: alert('Making a request!')"
class="form"
hx-trigger="submit,change"
onchange="queryParams.setForm(this)"
>
high-microphone-71328
05/09/2023, 10:21 PMmysterious-toddler-20573
05/09/2023, 10:27 PMhtmx.version
in your console?enough-petabyte-50314
05/09/2023, 11:03 PMcuddly-keyboard-70746
05/10/2023, 5:19 AMcuddly-keyboard-70746
05/10/2023, 5:20 AMclean-arm-73414
05/10/2023, 6:47 AMhtmx.ajax('GET',
?where=${encodeURIComponent(queryString)}`,{target:"#ListContent", swap:"outerHTML",pushUrl:true})` , but that didnt work. neither "PushUrl"
high-microphone-71328
05/10/2023, 1:21 PMmysterious-toddler-20573
05/10/2023, 1:23 PM