1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
|
{
$.ajax({
url : '../ss/envoyer_message_simple.php',
type :'POST',
async: true, // le probleme venait d'ici
data: ({ "sender_id":sender_id,"destinataire":destinataire,"message":message,"nombre_message":nombre_message }),
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){
},
});
} // Fin Gestion des envoies Direct |
Partager