WIP (Felix lit ton error.log la prochaine fois) faut le js et le php

This commit is contained in:
2024-04-03 17:41:08 +02:00
parent 04c479ef53
commit a2bcc00a44

View File

@@ -1,8 +1,10 @@
console.log("index.js loaded");
//Search
type = document.getElementById("nom").value;
postal = document.getElementById("postal").value;
document.getElementById("button-addon2").addEventListener("click", function() {
ajaxRequest('GET',"src/API/test/search.php?type=" + type + "&postal=" + postal, displaySearchResults);
ajaxRequest('GET',"src/API/requests.php/api/search?type=" + type + "&postal=" + postal, displaySearchResults);
});
function displaySearchResults(data) {