ajaxError being triggered even with 200 ok status returned?

ajaxError being triggered even with 200 ok status returned?

Hi there,

I am loading a largeish chunk of json which is about 47kb in size according to firebug. I can see the html in firebug and 200 ok status but for some reason it is triggering ajaxError? Firebug says the file is taking just a few milliseconds to download so I think it is probably the parsing of the json that is slow and exceeding the timeout? I have tried setting timeout: 200000000 and using ajaxSettings but it is still doing the same?

  1. $.ajax({    url: '/admin/viewer/rates',
                data: $(this).serialize(),
                success: function(data) {
                    if(data.responseCode != 'ok') window.location = loginUrl;
                    $(obj).parent().html(data.responseText).find(".done").delay(1000).fadeOut(2000);
                },
                dataType:'json',
                timeout: 10000000 });








Any idea why this is happening?

Thanks,

Jonathan.









    • Topic Participants

    • jonno