Every time when someone types something in the inputfield, I use ajax to check if the username already exists. But this query is very slow. I uploaded the page and it need 2-5s for this query. I use this code here
$('#register_username').bind('input propertychange', function() {
$.ajax({
type: "POST",
url: "check_username.php",
data: "username="+value
success: function(response){
//...
}
}
}
In check_username.php is only a sql statement.
Im using a free webspace at the moment (lima-city.de). Is that the problem maybe?
You can test it here, enter in the first inputfield Benutzername