On Apr 20, 3:03 pm, "Mauricio \(Maujor\) Samy Silva" <css.mau...@gmail.com> wrote: > > Hi! > > I'm trying to setup an ajax call which throws an error on timeout. > ... > > "timeout": 10000, > > "error": function(d,msg) { > > alert("Could not load stuff"); > > }, > ... > > This works, but the error is never thrown. If I change the URL to > > something that's broken, I do get the error message, but on timeout it > > never happens. > > ------------------------------------------------------------------- > Are you sure that your request spends more than 10s ? > > Maurício
Hi! I tried this while offline. The jquery JsonP lib times-out directly (which would be my preference). But I'm sure nothing loads in 10s, since I'm offline. (this is for an app over flaky mobile connections). PanMan.