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 27 28 29 30 31 32 33 34 35 36 37
| $.ajax({
url: "../ss/recherche_variable.php",
type: "POST",
async: true, // Mode synchrone
data: ({
id_ligne:(i+1),
//format: $("#format").val()
}),
dataType: "application/x-www-form-urlencoded",
complete: function(data){
myArray=JSON.parse($.trim(data.responseText));
mes=replaceVars(myArray); // Reformulons le test en question en fonction du numero et des parametre choisi.
$.ajax({
url : '../ss/envoyer_mes_simple.php',
type :'POST',
async: true, // Mode asynchrone
data: ({ "s_id":s_id,"dest":dest,"mes":mes,"nombre_mes":nombre_mes }),
dataType: "application/x-www-form-urlencoded",
complete : function(resultat, statut){
// nombre_retour=nombre_retour+1;
//waitingDialog.mes('Envoi...'+nombre_retour+' sur '+tab_length);
//if(nombre_retour+1>=tab_length) setTimeout(location.reload.bind(location, true), 1000);
},
success : function(code_html, statut){
console.log(statut);
},
error : function(resultat, statut, erreur){
},
});
}
}); |
Partager