i rephrase.
This is the view:
def v_tools(request, snCI=0):
logger.info(f"snCI={snCI}")
From the template:
<button id="submit-button" type="button" title="tools" hx-get="{% url 'tools-baseline' snCI='placeholder' %}" hx-target="#dialog_tools" class="btn-special">Tool</button>
the js script:
$(".checkboxAll").on("change", function() {
build_hx_get();
});
function build_hx_get() {
var checkboxes = $('input[name=selectedcis]:checked');
var values = checkboxes.map(function() {
return $(this).val();
}).get();
selectedValuesString = values.join(',');
console.log(selectedValuesString);
var url = "/base/tools/?snCI=" + selectedValuesString;
var timestamp = new Date().getTime();
url += "×tamp=" + timestamp;
$('#submit-button').attr('hx-get', url);
};
i the debugger i see this:
<button id="submit-button" type="button" title="tools" hx-get="/base/tools/?snCI=servername1,servername2×tamp=1685540724092" hx-target="#dialog_tools" class="btn-special">Tool</button>
but the output from the logger says:
snCI=placeholder