I have the following javascript code on my site that is called when a user saves a bookmark:
function addbookmark(id, col) {
var action = 'addbookmark';
var username = '<?php echo $log_username; ?>';
$("#addbookmark"+id).html('<i class="fa fa-spin fa-spinner"></i>');
$.post('https://xxxxxxx/bookmarks_system.php', { username: username , id: id, column: col, action:action },
function(data) {
$("#addbookmark"+id).hide();
$("#removebookmark"+id).show()
$(".fade_notification").text('Bookmark saved');
$(".fade_notification").delay(100).fadeIn(250);
$('.fade_notification').delay(3000).fadeOut(400);
});
}
This code is working fine on my chrome browser on my laptop, but for some reason it doesn't work when I open the site on my mobile browser (chrome on Android). When I click the button on my mobile, it won't post the data for some reason and keeps showing the spinner icon that is shown when the data is not yet posted.
Anyone who can see why it would not be working on chrome on android?