aboutsummaryrefslogtreecommitdiff
path: root/localisation.js
diff options
context:
space:
mode:
authorClyhtsuriva Synck <clyhtsuriva>2020-03-01 15:14:15 +0100
committerClyhtsuriva Synck <clyhtsuriva>2020-03-01 15:14:15 +0100
commit703c1c623892d69d8e24af68b31d84495301ca02 (patch)
tree743b32ed4cc4a5d597b4fbc5726e0c3e52bf7c7b /localisation.js
parentf33d24f47fa9d39e687d55cff1de9b4cc4ceb033 (diff)
initial files
Diffstat (limited to 'localisation.js')
-rw-r--r--localisation.js19
1 files changed, 19 insertions, 0 deletions
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();
+}
+