I am using AJAX to check if a username is taken while the user is typing. Opera's adblocker is blocking the script from running. The file path is http://localhost/flashcardapp/inc/isUidTaken.inc.php?uid=asf. I can call the file directly, but can't seem to access it with AJAX. When I turn off adblocker, the issue is resolved.
I have tried without effect changing the names of files and folders.
Can I resolve this issue, or should I just leave it as it is, as the server checks if the username is taken as well, the only thing is it would be less convenient if they have to submit the form and then see if their username is taken.
$("input[name='uid']").on('change', function() {
var value = $(this).val();
$.ajax({
url: "inc/isUidTaken.inc.php",
data: {
uid: value
},
type: "GET",
success: function(data) {
console.log(data);
}
});
});