1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
| $.ajax({
url : '../ss/envoyer.php',
type :'POST',
cache:true,
async: true, // Mode asynchrone
data: ({ 'id':id,'destinataire':destinataire,'message':message,'nombre':nombre }),
dataType: "application/x-www-form-urlencoded",
complete : function(resultat, statut){
nombre_retour=nombre_retour+1;
waitingDialog.message('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