Is it possible to check timeout on jQuery.post()?

后端 未结 2 1729
别那么骄傲
别那么骄傲 2020-12-31 14:01

I have this code requesting some folder info from a mysql DB:

function gotoDir(pmcat_id, pcat_id){
    $(\'#slideshowContainer\').html(\'

        
2条回答
  •  灰色年华
    2020-12-31 14:54

    You should use $.ajax() and $.ajaxError(), then with "ajaxComplete" you can check if your request timedout, or succeded.

    Source: jQuery API

提交回复
热议问题