Salut,
J'ai cette structure :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
 
<select name="corps" id="corps">
<option value="-1">Chargement...</option>
</select>
<span id="loader" style="display: none;"><img src="images/loader.gif" alt="loading" /></span>
Et coté JS :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
 
 else if (xhr.readyState < 4) {
	document.getElementById('corps').nextSibling.style.display = "inline";
 }
Mais plutot ceci marche :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
 
 else if (xhr.readyState < 4) {
	document.getElementById('loader').style.display = "inline";
 }
Où est le soucis?

Merci d'avance...