Bonjour,

Sous Mozilla 5.0, pour le code suivant, le readyState reste bloqué à 1, tandis que sous IE, il passe bien par tous les statuts.

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
function ajoutBilan()
 {
  {
   xhrAjoutBilan=getXhr();
 
   xhrAjoutBilan.onreadystatechange = function()
     {alert(xhrAjoutBilan.readyState);
      if(xhrAjoutBilan.readyState == 4 && xhrAjoutBilan.status == 200)
       //window.location.reload();
       document.getElementById('resultat').innerHTML = xhrAjoutBilan.responseText;
     }
 
   xhrAjoutBilan.open("POST",'../transferts/ajoutBilan.php',true);
 
   xhrAjoutBilan.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
 
   xhrAjoutBilan.send();
  }
 }
Quelqu'un pourrait-il m'aider?

Merci d'avance