Arkadaşlar Kaç gündür bu hata ile uğraşıyorum yardım lütfen.
<script type="text/javascript">
$(document).ready(function () {
$('#FavoriButon').click(function(){
var soru_id = $(this).attr('data-id');
$.ajax({
url: 'soru-detay.php',
type: 'post',
async: false,
data: {
'favoriad': 1,
'soru_id': soru_id
},
success: function(){
$("#FavoriButon").remove();
$(".resimserit").append("<button type='submit' class='btn btn-warning btn-xs' id='FavoriButonex' data-id='"+soru_id+"'><i class='fa fa-heart-o'></i> Fovorilerimden Çıkar</button>");
}
});
});
$('#FavoriButonex').click(function(){
var soru_id = $(this).attr('data-id');
$.ajax({
url: 'soru-detay.php',
type: 'post',
async: false,
data: {
'favoriex': 1,
'soru_id': soru_id
},
success: function(){
$("#FavoriButonex").remove();
$(".resimserit").append("<button type='submit' class='btn btn-success btn-xs' id='FavoriButon' data-id='"+soru_id+"'><i class='fa fa-heart-o'></i> Fovorilerime Ekle</button>");
}
});
});
});
</script>Hata : [Deprecation] Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check https://xhr.spec.whatwg.org/.send @ all.js:8556
