Heu... je veux bien lui envoyé le paramètre txtRecherche... mais dans cette fonction sa me parait pas évident...
Je ne vois pas très bien où placer mon paramètre txtRecherche du coup...
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 function AjaxReception (nomfic, typefic, uneFonction, info) { //--- propriétés --- xhr = Ajax() ; // variable de connexion ajax //--- si l'objet est construit, creation de la méthode de récupération --- if (xhr) { //--- réception du serveur --- xhr.onreadystatechange = function () { if (xhr.readyState == 4 && xhr.status == 200) { if (typefic=="XML") { uneFonction(xhr.responseXML) ; } else { uneFonction(xhr.responseText) ; } } } xhr.open("GET", nomfic, true) ; xhr.send(null) ; } }
Partager