aboutsummaryrefslogtreecommitdiff
path: root/localisation.js
blob: 309f230c15a1bdda513d9de34ac540b234920126 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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();
}