$.getJSON() is just a wrapper on $.ajax(). The equivaqlent of $.ajax({url:..., dataType:'json', data:..., success:..})
Try using $.ajax with that dataType instead and throw in the timeout on that.
Matt wrote:
Hi guys, Is there any way to handle timeouts when using $.getJSON() ? I tried to setup ajax "timeout" options to 2500 (2.5 sec), but as getJSON does not use a XHR, it seems not to work. Any help would be grately appreciated, thanks in advance, Matt
-- Peter Bengtsson, work www.fry-it.com home www.peterbe.com hobby www.issuetrackerproduct.com