mirror of
https://github.com/BreizhHardware/ProjetS4COMWEB.git
synced 2026-01-19 00:57:32 +01:00
WIP (Felix lit ton error.log la prochaine fois) faut le js et le php
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user