From 703c1c623892d69d8e24af68b31d84495301ca02 Mon Sep 17 00:00:00 2001 From: Clyhtsuriva Synck Date: Sun, 1 Mar 2020 15:14:15 +0100 Subject: initial files --- localisation.js | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 localisation.js (limited to 'localisation.js') diff --git a/localisation.js b/localisation.js new file mode 100644 index 0000000..309f230 --- /dev/null +++ b/localisation.js @@ -0,0 +1,19 @@ +function filtre(){ + + var query = document.getElementById("nom"); + var url = "affiche-maps.py?nom=" + nom.value; + + var req = new XMLHttpRequest(); + req.open("GET", url, true); + + req.onreadystatechange = function(){ + if(req.readyState == 4 && req.status == 200) { + var map=document.getElementById("carteRempl") ; + map.innerHTML = req.responseText; + alert("") + } + + } +req.send(); +} + -- cgit v1.2.3