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
| if(confirm('Voulez-vous vraiment supprimer ce dossier?') == true){
$.ajax({
url: 'Reservation.php',
type: 'GET',
data:{
type:"Supprimerenregistrement",
vlr:accusee,
vlr2:user,
vlr3:numww
},
success: function(data) {
try {
console.log(data);
if(data=='OK'){
alert('Cette demande est bien supprimee');
supprimer(elementIMG);
}else{
alert(data);
}
return true;
} catch(e) {
alert(data);
}
},
error:function(){ //????????????????
alert("Error");
return false;
}
}); |
Partager