AJAX validation "freezes" in jQuery?
<pre><code>function checkuser(user) {
        var ret = false;
        $.ajax({ type:'POST', url:'user.php',
            async:false,
            data:{'user':user},
            success:function (data) {
                if (data == 1) ret = true
            } });

        return ret;
    }
</code></pre>

<p>I use bvalidator to validate fields. It seems to fire this function on every keypress and the user is not able to continue typing before the ajax call is competed. I'm not really sure what to do here. </p>

<p>How could I make the function not be ran more than once every two seconds for example?</p>
