bonjour une âme charitable pourrait m'expliquer ce script ?


Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<script>
 
				   function showUser(str) {
    					if (str == "") {
						document.getElementById("txtHint").innerHTML = "";
        				return;
    				} else { 
							if (window.XMLHttpRequest) {
            					xmlhttp = new XMLHttpRequest();
							} 
							else {
        						xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
        					}
        				xmlhttp.onreadystatechange = function() {
            			if (this.readyState == 4 && this.status == 200) {
                		document.getElementById("txtHint").innerHTML = this.responseText;
            				}
							};
						xmlhttp.open("GET","Rprof.php?q="+str,true);
        			xmlhttp.send();
    				}
				  }
 
				</script>