aboutsummaryrefslogtreecommitdiff
path: root/www/html/filtre.js
blob: b523360c2ea58c1b189975ae5f7ed5b27e3e421e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
function cherche(){
	
	var condition = document.getElementById("condition");
	var url = "affiche-tab.py?condition=" + condition.value;
	
	var req = new XMLHttpRequest();
	req.open("GET", url, true);
	
	req.onreadystatechange = function(){
		if(req.readyState == 4 && req.status == 200) {
			var tab=document.getElementById("tab");
			tab.innerHTML = req.responseText;
		}
	}
	
	req.send();
}