You could make a synchronous ajax call instead, but it will lock the
browser until a response is received:
something roughly along these lines:
$.ajax({
type: "GET",
url: "validate.php",
data: {value: somevalue}
async: false,
dataType: somedatatype,
success: function(data){...}
});

or maybe try and trigger a function if the data is considered valid
(and possibly another if invalid) that does what you want it to do
instead of return true or false.

Reply via email to