只需在Ajax failure function 內加入



failure: function(obj1,obj2) {

               if(obj1.statusText == 'communication failure') {

                    var task = new Ext.util.DelayedTask(/*你的ajax code or function*/);

                    task.delay(1);

                }else{

                    alert('請告知管理員伺服器有 : '+obj1.statusText+' 的錯誤');

                }

}

或檢查呼叫的php有無不會顯示訊息的執行錯誤
例如:無限遞迴
arrow
arrow
    全站熱搜

    herb123456 發表在 痞客邦 留言(0) 人氣()