Oulà !!!
je m'en veux un peu de ne pas avoir vu cela mais pas trop comme tu nous à dit
néanmoins je remets ton code ré-indenté pour l'occasionj'ai verifiée je recois effecticement les elements dans leformats souhaité
indice : regarde où se trouvent les instructions open et send
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 function requestProjet(oSelect) { var xhr = getXhr(); var value = oSelect.options[oSelect.selectedIndex].value; xhr.onreadystatechange = function () { if (xhr.readyState == 4 && (xhr.status == 200 || xhr.status == 0)) { readData(xhr.responseXML); document.getElementById('loader').style.display = 'none'; } else if (xhr.readyState < 4) { document.getElementById('loader').style.display = 'inline'; } xhr.open('POST', 'list_projet_by_id.php', true); xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded'); xhr.send('EXE_CODE=' + value); } }
Partager