Add another attempt with python

This commit is contained in:
2022-07-02 22:03:35 +02:00
parent 4ef8cc57b1
commit 8ac2237892
38 changed files with 261 additions and 0 deletions

10
python_flask/app.js Normal file
View File

@@ -0,0 +1,10 @@
document.body.addEventListener('htmx:responseError', function(evt) {
console.log(evt.detail);
let detail = evt.detail;
let responsecode = detail.xhr.status;
if (responsecode == 400 && detail.requestConfig.path === "/list/") {
alert(detail.xhr.response)
console.log(evt.detail.xhr.repsonse);
}
});
console.log("Added event listener");