diff options
Diffstat (limited to 'localisation.js')
-rw-r--r-- | localisation.js | 19 |
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(); +} + |