¿Quién puede resolver mi método İF-ELSE roto? Uso ajax y estoy 100% seguro de que esto (e) = "Actualización exitosa". para entender verifique la imagen. cuando revisa la imagen que agregué, puede ver allí que "actualización exitosa". stringf (significa 'e') lo mismo con if. pero si no funciona.
$.ajax({ url:'ajax.php', // serileştirilen değerleri ajax.php dosyasına type:'POST', // post metodu ile data:guncelleform, // yukarıda serileştirdiğimiz gonderilenform değişkeni contentType:false, cache:false, processData:false, success:function(e){ // gonderme işlemi başarılı ise e değişkeni ile gelen değerleri aldı if (e == "Update Succesful.") { Toastify({ text: e, duration: 3000, close:true, gravity:"top", position: "right", backgroundColor: "#32FF00",//Green Color code that mean is update Succesfull }).showToast(); }else{ Toastify({ text: e, duration: 3000, close:true, gravity:"top", position: "right", backgroundColor: "#FF0000",//RED Color code that mean is update unsuccesfull }).showToast(); } // $("#sonuc").html("").html(alert(e)); // div elemanını her gönderme işleminde boşalttı ve gelen verileri içine attı } });