2011-03-02 103 views
-1

未捕獲的異常:[異常... 「組件返回失敗代碼: 0x80040111(NS_ERROR_NOT_AVAILABLE) [nsIXMLHttpRequest.getAllResponseHeaders]」 nsresult:「0x80040111 (NS_ERROR_NOT_AVAILABLE) 「位置: 」JS幀:: = 1299105704512「> http://code.jquery.com/jquery-1.5.min.js?=1299105704512 ::匿名::線16」 的數據:無]jQuery的錯誤 「未捕獲的異常...」

我重複的AJAX調用不能完全加載,它們是隻是加載和加載... 是從ajax調用 - 3,包括一個重複每5秒? 如何解決它?

編輯: 我用這個代碼,包括jQuery的

<script src="http://code.jquery.com/jquery-1.5.min.js"></script> 

這裏是我的AJAX請求:

$.ajax({ 
type: "GET", 
url: "subscribe1.php", 
data: "feed="+feeded+"&user="+thisuserd , 
success: function(msged){ 
$("#csub").html(msged); 
} 
}); 
$(document).ready(function() { 
    setInterval("ajaxd()",5000); 
}); 

function ajaxd() { 
    var thisuser = $("#thisusern").text(); 
    $.ajax({ 
    type: "GET", 
    url: "newstitle.php", 
    data: "user="+thisuser, 
    success: function(msg){ 
    $("#edix").html(msg); 
    } 
}); 
} 
     $.ajax({ 
    type: "GET", 
    url: "newscontent.php", 
    data: "title="+titled+"&timestamp="+timestampd, 
    success: function(msgd){ 
    var splitups = msgd.split("|"); 
    var titleds = splitups[0]; 
    var content = splitups[1]; 
    $("#whatsup").html(titleds); 
    $("#content").html(content); 

    } 
}); 
+0

我認爲你的一半問題缺失。你能澄清嗎? – JohnFx 2011-03-02 22:59:20

+1

XSS問題?您是否要求網頁不在您的域名上? – Detect 2011-03-02 23:00:02

+0

@JohnFx,不,那是question.There的什麼都不缺。 @Detect,不,我打開我增加了一些更多信息域 – lam3r4370 2011-03-02 23:04:49

回答

0

你試過覆蓋.ajaxError()More info

一些示例:

$("#msg").ajaxError(function(event, request, settings) 
{ 
    $(this).append("<li>Error requesting page " + settings.url + "</li>"); 
}); 

Here你有更多關於Firefox例外。

希望這會有所幫助。

+0

沒有任何錯誤... – lam3r4370 2011-03-02 23:17:55

+0

請求頁面newstitle.php?user = das時出錯 – lam3r4370 2011-03-03 18:12:24

相關問題