[jQuery] Re: Delay function to wait for post

2009-03-25 Thread Klaus Hartl
async:false may freeze the browser and is in general not a good idea unless you know that your network, server etc will 100% work. Why don't you simply put the last line into the callback as well? --Klaus On 24 Mrz., 22:40, James wrote: > Add the {async:false} option to your $.get. This tell

[jQuery] Re: Delay function to wait for post

2009-03-24 Thread James
Add the {async:false} option to your $.get. This tells JavaScript to wait for the response before continuing with the rest of the script. By default, AJAX is asynchronous. On Mar 24, 4:13 am, aeg1s wrote: > I have the following code: > > $('#r_0_0').blur(function() { > >  var x = $('#r_0_0').val