jQuery错误“未捕获的异常......”

时间:2011-03-02 22:57:33

标签: jquery exception uncaught-exception

  未被捕的例外:[例外......   “组件返回失败代码:   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   :: anonymous :: line 16“data:no]

我重复的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);

   }
 });

1 个答案:

答案 0 :(得分:0)

您是否尝试覆盖 .ajaxError()More info

一些例子:

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

Here您有更多关于Firefox Exceptions的信息。

希望这有帮助。

相关问题