Bonjour,

j'ai un petit problème sur un script qui fonctionne parfaitement sur un serveur et mal sur un autre.

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
25
26
function xhr_mise_a_jour_commande(num_commande_aw,num_tracking){
	ajaxBox_loader(true);
	var objxhr = xhr_connect()
	if (objxhr) {
		objxhr.onreadystatechange = function(){
			if(objxhr.readyState == 4) {
				if(objxhr.status == 200) {
//					alert(objxhr.responseText)
//					explore(objxhr.responseXML)
					ajaxBox_loader(false);
				}
			}
		}
		var post_arguments = 'num_commande_aw='+num_commande_aw+'&num_tracking='+num_tracking
		var post_num_tracking = 'num_tracking='+num_tracking
		//	alert ('le champ a pour valeur : "'+num_commande.innerHTML+"'")
		objxhr.open("POST" , "./valider_commande_sql.php" , true)
		objxhr.setRequestHeader('Content-Type','application/x-www-form-urlencoded')
		objxhr.send(post_arguments)
		alert(' c est n imp ')
	} else {
		alert("soucis d xmlHTTPRequest")
		ajaxBox_setText('Error...');
		ajaxBox_loader(false);
	}
}
sur le serveur 1 tout ce passe bien sans le alert(' c est n imp ')

sur le serveur 2 rien ne se passe sauf si j ajoute le alert(' c est n imp ')
avec le alert(' c est n imp ') le code s exécute bien.
je seche

si ça parle à quelqu un. merci beaucoup