[jQuery] Re: General question regarding AJAX and callbacks

2007-12-13 Thread David Decraene
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

[jQuery] Re: General question regarding AJAX and callbacks

2007-12-13 Thread Rémi Prévost
Oh, and I meant, with an asynchronous request. Sorry, On 13 déc, 09:52, Rémi Prévost <[EMAIL PROTECTED]> wrote: > Hello, > > I've got the following code: > >function validateServer(value) { > var valid; > $.get("validate.php", { "value" : value }, function(data) { >valid =